public enum DiagnosticCategory extends Enum<DiagnosticCategory>
The category answers which layer owns the problem. It is deliberately
orthogonal to Severity: for example, an unsupported lowering may be
represented by an ERROR in strict mode while a recovery API retains a
partial program alongside that same ERROR.
API status: supported discriminator. New values may be added; consumer switches should retain a default branch.
| Enum Constant and Description |
|---|
ADVISORY
Non-fatal information about a valid analysis result.
|
ANALYSIS_DEGRADED
Analysis continued while explicitly omitting or approximating facts.
|
DIALECT_SEMANTIC_ERROR
The selected SQL dialect rejects an otherwise parsed construct.
|
LOWERING_UNSUPPORTED
The SQL may be valid, but Semantic IR cannot represent it yet.
|
SYNTAX_ERROR
The token stream or parsed grammar is not syntactically valid.
|
| Modifier and Type | Method and Description |
|---|---|
static DiagnosticCategory |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DiagnosticCategory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DiagnosticCategory SYNTAX_ERROR
public static final DiagnosticCategory DIALECT_SEMANTIC_ERROR
public static final DiagnosticCategory LOWERING_UNSUPPORTED
public static final DiagnosticCategory ANALYSIS_DEGRADED
public static final DiagnosticCategory ADVISORY
public static DiagnosticCategory[] values()
for (DiagnosticCategory c : DiagnosticCategory.values()) System.out.println(c);
public static DiagnosticCategory valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null