Package jline.io
Class ErrorId
java.lang.Object
jline.io.ErrorId
- All Implemented Interfaces:
Serializable
An identifier of the cross-codebase error vocabulary,
LINE:<category>:<kind>.
The same string is a MATLAB error identifier, the identifier of a
Python LineError and the id() of a C++ line::Error, so a
test, SolverAUTO and the parity harness can ask why a solver failed instead of
matching message text. The categories and their meaning are listed in
_kb/17-error-vocabulary.md.
UNCLASSIFIED (LINE:Error) is the legacy id of a diagnostic
that has not been classified yet; it is not a category.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringA tool, binary, service or bridge LINE depends on is missing or failed.static final StringThe model, argument, option or file is malformed or inconsistent.static final StringAn invariant LINE itself should guarantee was violated.static final StringThe computation ran and cannot produce a trustworthy answer.static final ErrorIdThe legacy id of a diagnostic not yet classified.static final StringA solver, method or analysis refuses the model or request. -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic ErrorIdThe category, or null forUNCLASSIFIED.getKind()The kind, or null forUNCLASSIFIED.inthashCode()static ErrorIdstatic ErrorIdbooleanTrue when this id is in the given category.static ErrorIdstatic ErrorIdBuilds an id, orLINE:internal:BadErrorIdwhen the category is not one of the five or the kind does not match[A-Za-z][A-Za-z0-9_]*.static ErrorIdParses a full identifier.toString()static ErrorIdunsupported(String kind)
-
Field Details
-
UNSUPPORTED
A solver, method or analysis refuses the model or request.- See Also:
-
NUMERICAL
The computation ran and cannot produce a trustworthy answer.- See Also:
-
INPUT
The model, argument, option or file is malformed or inconsistent.- See Also:
-
EXTERNAL
A tool, binary, service or bridge LINE depends on is missing or failed.- See Also:
-
INTERNAL
An invariant LINE itself should guarantee was violated.- See Also:
-
UNCLASSIFIED
The legacy id of a diagnostic not yet classified.
-
-
Method Details
-
of
Builds an id, orLINE:internal:BadErrorIdwhen the category is not one of the five or the kind does not match[A-Za-z][A-Za-z0-9_]*. -
unsupported
-
numerical
-
input
-
external
-
internal
-
parse
Parses a full identifier.LINE:ErrorgivesUNCLASSIFIED; anything else outside the grammar givesLINE:internal:BadErrorId. -
getCategory
The category, or null forUNCLASSIFIED. -
getKind
The kind, or null forUNCLASSIFIED. -
is
True when this id is in the given category. -
toString
-
equals
-
hashCode
public int hashCode()
-