CompilationErrorException constructor (1 of 2)

Initializes a new instance of the CompilationErrorException class with a specified error message and diagnostics.

public CompilationErrorException(string message, ImmutableArray<Diagnostic> diagnostics)
parameter description
message The error message that explains the reason for the exception.
diagnostics The collection of diagnostics produced during compilation.

See Also


CompilationErrorException constructor (2 of 2)

Initializes a new instance of the CompilationErrorException class with a specified error message, diagnostics, and inner exception.

public CompilationErrorException(string message, ImmutableArray<Diagnostic> diagnostics, 
    Exception innerException)
parameter description
message The error message that explains the reason for the exception.
diagnostics The collection of diagnostics produced during compilation.
innerException The exception that is the cause of the current exception.

See Also