Enum Class ErrorCode
Javadoc 27 generates this reference during each site build from the exported packages and the annotation processor. The Java guide shows the API in use.
- All Implemented Interfaces:
Serializable, Comparable<ErrorCode>, Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA work budget is exhausted.A check condition is false.Runtime record collections cannot be aligned for a check.Comparison operands violate scalar or numeric requirements.A size, count or base expression is not a permitted count.Integer division or remainder by zero.Required literal token absent or different.Input does not satisfy the reading type or domain, or the line of values is absent.Integer exponent is negative.A field is unavailable in the selected runtime record.No remaining line matches a find pattern.Aminormaxreceives no integer leaves.Function or comprehension operand has the wrong type or shape.Anindexstatement executes outside a repeat.Input row index differs from the expected repeat index.Array or record-list index is outside its bounds.Attempt to index a scalar.Index expression is not an integer scalar.Reading requires an instance but none exists.Requested instance number or name does not exist.Numeric instance selection is below one.Multiple instances require an explicit selection.Checked integer arithmetic or value adjustment overflows.Integer arithmetic requires integer scalar operands.Layout value, name, or matrix shape is invalid.No match for a line pattern, either forlineor a requiredsectionsarm.List terminator has an invalid type or shape.Referenced value or record collection is not defined yet.An instance or indefinite repeat body consumes no input.Offset expression is not an integer scalar.Required parameter was not supplied.Supplied parameter cannot convert to its default's numeric value type.Caller supplied a parameter not declared by the reader spec.Current-value pattern reference is neither a string nor an integer scalar.Range bound is not an integer scalar.Repeated values have inconsistent depths.Required scalar is absent from some or all nonempty repeat iterations.Required terminating token is absent before input ends.A sections arm matches a second line.No sections arm matches the current line and skip other is absent.Array or matrix cell count exceeds the supported structural bound.A requested line cannot be skipped at end of input.Unrecognized reader-spec character.Check attempts to range over incompatible or ambiguous repeat definitions.Unknown Gecode host constant.Invalid field selection or ambiguous field definition.Unknown function, or an invalid call form or arity.Reserved or discard name used where a real definition or binding is required.Conflicting type, value, record, or comprehension names.Block or expression nesting limit of the reader spec exceeded.Invalid or unrepresentable reader-spec numeric literal.Malformed pattern or capture, or an invalid capture type.Statement or setting used in a prohibited position.Reference to a record, list or field outside its permitted repeat scope.Record or list used as a value, an indexed record or a comprehension list where prohibited.Invalid reader-spec string.Required syntactic item absent or unrecognized statement.Reading type incompatible with a declaration, list or option.Reading type name is not known at this point.Reader spec is not valid UTF-8.Alphabet reading encounters end of input or an unrecognized symbol.Disallowed input remains after execution finishes.A parsed named type has not been evaluated on the executed path.The supplied input or a word or rest value that was read contains invalid UTF-8.Repeated or list values mix strings and numbers. -
Method Summary
Modifier and TypeMethodDescriptioncode()Returns the text of this code, such asE-SPEC-SYNTAX.static ErrorCodeReturns the enum constant of this class with the specified name.static ErrorCode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SPEC_UTF8
Reader spec is not valid UTF-8. -
SPEC_STRING
Invalid reader-spec string. -
SPEC_NUMBER
Invalid or unrepresentable reader-spec numeric literal. -
SPEC_CHARACTER
Unrecognized reader-spec character. -
SPEC_PATTERN
Malformed pattern or capture, or an invalid capture type. -
SPEC_SYNTAX
Required syntactic item absent or unrecognized statement. -
SPEC_PLACEMENT
Statement or setting used in a prohibited position. -
SPEC_NAME
Reserved or discard name used where a real definition or binding is required. -
SPEC_NAME_CONFLICT
Conflicting type, value, record, or comprehension names. -
SPEC_UNKNOWN_TYPE
Reading type name is not known at this point. -
SPEC_TYPE
Reading type incompatible with a declaration, list or option. -
SPEC_NESTING
Block or expression nesting limit of the reader spec exceeded. -
SPEC_FUNCTION
Unknown function, or an invalid call form or arity. -
SPEC_CONSTANT
Unknown Gecode host constant. -
SPEC_RECORD_SCOPE
Reference to a record, list or field outside its permitted repeat scope. -
SPEC_FIELD
Invalid field selection or ambiguous field definition. -
SPEC_RECORD_VALUE
Record or list used as a value, an indexed record or a comprehension list where prohibited. -
SPEC_CHECK_SCOPE
Check attempts to range over incompatible or ambiguous repeat definitions. -
BUDGET
A work budget is exhausted. -
CHECK_FAILED
A check condition is false. -
CHECK_RECORDS
Runtime record collections cannot be aligned for a check. -
COMPARISON_TYPE
Comparison operands violate scalar or numeric requirements. -
COUNT
A size, count or base expression is not a permitted count. -
DIVISION_ZERO
Integer division or remainder by zero. -
EXPECTED_TOKEN
Required literal token absent or different. -
EXPECTED_VALUE
Input does not satisfy the reading type or domain, or the line of values is absent. -
EXPONENT
Integer exponent is negative. -
FIELD_UNDEFINED
A field is unavailable in the selected runtime record. -
FIND_MATCH
No remaining line matches a find pattern. -
FUNCTION_EMPTY
Aminormaxreceives no integer leaves. -
FUNCTION_TYPE
Function or comprehension operand has the wrong type or shape. -
INDEX_CONTEXT
Anindexstatement executes outside a repeat. -
INDEX_MISMATCH
Input row index differs from the expected repeat index. -
INDEX_RANGE
Array or record-list index is outside its bounds. -
INDEX_SCALAR
Attempt to index a scalar. -
INDEX_TYPE
Index expression is not an integer scalar. -
INSTANCE_EMPTY
Reading requires an instance but none exists. -
INSTANCE_NOT_FOUND
Requested instance number or name does not exist. -
INSTANCE_NUMBER
Numeric instance selection is below one. -
INSTANCE_SELECTION
Multiple instances require an explicit selection. -
INTEGER_OVERFLOW
Checked integer arithmetic or value adjustment overflows. -
INTEGER_TYPE
Integer arithmetic requires integer scalar operands. -
LAYOUT
Layout value, name, or matrix shape is invalid. -
LINE_MATCH
No match for a line pattern, either forlineor a requiredsectionsarm. -
LIST_TERMINATOR
List terminator has an invalid type or shape. -
NAME_UNDEFINED
Referenced value or record collection is not defined yet. -
NO_PROGRESS
An instance or indefinite repeat body consumes no input. -
OFFSET_TYPE
Offset expression is not an integer scalar. -
PARAM_MISSING
Required parameter was not supplied. -
PARAM_TYPE
Supplied parameter cannot convert to its default's numeric value type. -
PARAM_UNKNOWN
Caller supplied a parameter not declared by the reader spec. -
PATTERN_REFERENCE
Current-value pattern reference is neither a string nor an integer scalar. -
RANGE_BOUNDS
Range bound is not an integer scalar. -
REPEAT_DEPTH
Repeated values have inconsistent depths. -
REPEAT_MISSING
Required scalar is absent from some or all nonempty repeat iterations. -
REPEAT_TERMINATOR
Required terminating token is absent before input ends. -
SECTIONS_REPEATED
A sections arm matches a second line. -
SECTIONS_UNEXPECTED
No sections arm matches the current line and skip other is absent. -
SIZE_LIMIT
Array or matrix cell count exceeds the supported structural bound. -
SKIP_EOF
A requested line cannot be skipped at end of input. -
SYMBOL
Alphabet reading encounters end of input or an unrecognized symbol. -
TRAILING_INPUT
Disallowed input remains after execution finishes. -
TYPE_UNDEFINED
A parsed named type has not been evaluated on the executed path. -
VALUE_TYPE_MIX
Repeated or list values mix strings and numbers. -
UTF8
The supplied input or a word or rest value that was read contains invalid UTF-8.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
code
Returns the text of this code, such asE-SPEC-SYNTAX.- Returns:
- the text of this code, such as
E-SPEC-SYNTAX
-