Severity EnumerationSeverity EnumerationSeverity Enumeration

Specifies the severity of a compilation error event.

Syntax

Public Enumeration Severity
public enum Severity
public:
enum Severity
 
The SeveritySeveritySeverity type exposes the following members.

Members

 MemberDescription
MemberErrorErrorError The error is unrecoverable.
MemberWarningWarningWarning The error is recoverable.

Top

Remarks

The SeveritySeveritySeverity enumeration is used by CompilationErrorEventArgsCompilationErrorEventArgsCompilationErrorEventArgs to describe the severity of an event which occurred during compilation. The compiler is able to attempt recovery from warnings, while errors are considered fatal.

Whilst a fatal error is unrecoverable (the query cannot be compiled), if the error is ignored then processing can continue to allow more than one fatal error to be reported.