public class GCValueParseException extends GCVException
GCVException
thrown when the lexical representation
of a value does not parse correctly.
If the character position of the error can be determined it is
available through getErrIndex()
.
ERR_BAD_DN_DELIMS, ERR_BAD_DN_FORMAT, ERR_BAD_DN_SPACE, ERR_BAD_RANGE_VALUE, ERR_BAD_XML, ERR_DUPLICATE_ENUM_CHOICE, ERR_DUPLICATE_VALUE_NAME, ERR_HEADER_NOT_ALLOWED_HERE, ERR_INSERTION_POINT_NOT_FOUND, ERR_INVALID_ACTIVE_VALUE, ERR_INVALID_GROUP_LEADER, ERR_INVALID_INSTANCE_COUNT, ERR_INVALID_INSTANCE_VALUE, ERR_INVALID_NAME, ERR_INVALID_TYPE_SPECIFIER, ERR_MISSING_ACTIVE_VALUE, ERR_MISSING_DEFINITIONS_ELEMENT, ERR_MISSING_DISPLAY_NAME, ERR_MISSING_DOCUMENT_ELEMENT, ERR_MISSING_ENUM_CHOICES, ERR_MISSING_INSTANCE_VALUE, ERR_MISSING_TEMPLATE, ERR_MULTIPLE_DEFINITIONS_ELEMENT, ERR_MUST_BE_TRUE_OR_FALSE, ERR_REFERENCE_NOT_ALLOWED_HERE, ERR_SUBORDINATE_NOT_ALLOWED, ERR_TYPE_NOT_ALLOWED_HERE, ERR_VALUE_INCOMPLETE, ERR_VALUE_INVALID_CHAR, ERR_VALUE_NULL, ERR_VALUE_OUT_OF_RANGE, ERR_VALUE_REFERENCE_NOT_FOUND
Constructor and Description |
---|
GCValueParseException(int code)
Construct a
GCValueParseException with the passed code. |
GCValueParseException(int code,
GCValue value)
Construct a
GCValueParseException with the passed code. |
GCValueParseException(int code,
int errIndex)
Construct a
GCValueParseException with the passed code
and index into the value string. |
GCValueParseException(int code,
int errIndex,
GCValue value)
Construct a
GCValueParseException with the passed code
and index into the value string. |
Modifier and Type | Method and Description |
---|---|
int |
getErrIndex()
Return the character position of the lexical error, if
available.
|
getCode, getNode, getValueName
public GCValueParseException(int code)
GCValueParseException
with the passed code.code
- value from GCVException
.public GCValueParseException(int code, GCValue value)
GCValueParseException
with the passed code.code
- value from GCVException
.value
- GCValue
generating this exception.public GCValueParseException(int code, int errIndex)
GCValueParseException
with the passed code
and index into the value string.code
- value from GCVException
.errIndex
- character position of lexical error.public GCValueParseException(int code, int errIndex, GCValue value)
GCValueParseException
with the passed code
and index into the value string.code
- value from GCVException
.errIndex
- character position of lexical error.value
- GCValue
generating this exception.