public final class DiagnosticDescriptorCatalog extends Object
Every DiagnosticCode is deliberately named in the switch below.
The default is not a fallback classification: it rejects newly
added codes until their ownership category has been reviewed. The
catalog's exhaustiveness test calls this method for every enum value.
| Modifier and Type | Method and Description |
|---|---|
static DiagnosticCategory |
categoryOf(DiagnosticCode code)
Return the compiler-layer ownership category for
code. |
static boolean |
isUnsupportedNestedBlockRecoverable(Diagnostic diagnostic)
Recovery boundaries for unsupported nested blocks must not absorb
malformed source SQL or turn a dialect error into a successful warning.
|
static boolean |
isUnsupportedNestedBlockRecoverable(Iterable<Diagnostic> diagnostics)
Return true only when a non-empty diagnostic set is wholly recoverable.
|
public static DiagnosticCategory categoryOf(DiagnosticCode code)
code.NullPointerException - if code is nullIllegalArgumentException - if a newly added code has not yet been
classifiedpublic static boolean isUnsupportedNestedBlockRecoverable(Diagnostic diagnostic)
public static boolean isUnsupportedNestedBlockRecoverable(Iterable<Diagnostic> diagnostics)