public class LowLevelException extends RuntimeException
Modifier and Type | Field and Description |
---|---|
static int |
ACCESS_TYPE_ERROR
Error in low-level CAS APIs: trying to access value FS reference {0} as type "{2}" (code: {1}),
but is "{3}".
|
static int |
ARRAY_INDEX_LENGTH_OUT_OF_RANGE
Error in low-level CAS APIs: array index and or length out of range.
|
static int |
ARRAY_INDEX_OUT_OF_RANGE
Error in low-level CAS APIs: array index out of range: {0}.
|
static int |
CREATE_ARRAY_OF_TYPE_ERROR
Error in low-level CAS APIs: can't create array of type "{1}" (code: {0}).
|
static int |
CREATE_FS_OF_TYPE_ERROR
Error in low-level CAS APIs: can't create FS reference for type code {0}.
|
static int |
FEAT_DOM_ERROR
Error in low-level CAS APIs: type "{1}" (code: {0}) does not define feature "{3}" (code: {2}).
|
static int |
FEAT_RAN_ERROR
Error in low-level CAS APIs: feature "{1}" (code: {0}) does not take values of type "{3}"
(code: {2}).
|
static int |
FS_RAN_TYPE_ERROR
Error in low-level CAS APIs: trying to access value of feature "{1}" (code: {0}) as FS
reference, but range of feature is "{2}".
|
static int |
ILLEGAL_ARRAY_LENGTH
Error in low-level CAS APIs: illegal array length specified: {0}.
|
static int |
INVALID_FEATURE_CODE
Error in low-level CAS APIs: {0} is not a valid feature code.
|
static int |
INVALID_FS_REF
Error in low-level CAS APIs: attempted heap access with invalid FS reference: {0}.
|
static int |
INVALID_INDEX_TYPE
Error in low-level CAS APIs: trying to access index for invalid type code: {0}.
|
static int |
INVALID_TYPE_ARGUMENT
Error in low-level CAS APIs: illegal type code argument: {0}.
|
static int |
NULL_ARRAY_ACCESS
Error in low-level CAS APIs: attempting to access element {0} of array but array has null
value.
|
static int |
VALUE_NOT_A_TYPE
Error in low-level CAS APIs: attempt to interpret heap value {0} at {1} as type code, but {0}
is not a valid type code.
|
Constructor and Description |
---|
LowLevelException(int error)
Create a new
LowLevelException |
Modifier and Type | Method and Description |
---|---|
boolean |
addArgument(String s)
Add an argument to a
LowLevelException object. |
int |
getError() |
String |
getMessage() |
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public static final int INVALID_FS_REF
public static final int VALUE_NOT_A_TYPE
public static final int INVALID_FEATURE_CODE
public static final int FEAT_DOM_ERROR
public static final int FEAT_RAN_ERROR
public static final int FS_RAN_TYPE_ERROR
public static final int ACCESS_TYPE_ERROR
public static final int ARRAY_INDEX_OUT_OF_RANGE
public static final int ARRAY_INDEX_LENGTH_OUT_OF_RANGE
public static final int CREATE_FS_OF_TYPE_ERROR
public static final int INVALID_INDEX_TYPE
public static final int CREATE_ARRAY_OF_TYPE_ERROR
public static final int ILLEGAL_ARRAY_LENGTH
public static final int INVALID_TYPE_ARGUMENT
public static final int NULL_ARRAY_ACCESS
public LowLevelException(int error)
LowLevelException
error
- The error code.public int getError()
public String getMessage()
getMessage
in class Throwable
public String toString()
public boolean addArgument(String s)
LowLevelException
object. Excess arguments will be ignored,
and missing arguments will have the value null
. Add arguments in the order in
which they are specified in the message catalog (i.e. add %1 first, %2 next, and so on). Adding
a null String
has no effect! So if you don't know the value of an argument, use
something like ""
or "UNKNOWN"
, but not null
.s
- -Copyright © 2006–2021 The Apache Software Foundation. All rights reserved.