Get the list of Diagnostic's created during the construction of the parent object
Get the list of Diagnostic's created during the construction of the parent object
list of Diagnostic's. May contain errors or warnings, and so may be non-empty even if WithDiagnostics#isError is false.
Determine if any errors occurred in the creation of the parent object.
Determine if any errors occurred in the creation of the parent object.
true if no errors occurred, false otherwise
Determine if this object can be used in any future parse activities
Determine if this object can be used in any future parse activities
true it is safe to proceed, false otherwise
(Since version 2.0.0) Use !isError() to determine if it is safe to proceed
Abstract class that adds diagnostic information to classes that extend it.
When a function returns a class that extend this, one should call WithDiagnostics#isError on that class before performing any further actions. If an error exists, any use of that class, aside from those functions in WithDiagnostics, is invalid and will result in an Exception.