org.apache.uima.cas.impl
public class LowLevelException extends java.lang.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(java.lang.String s)
Add an argument to a
LowLevelException object. |
int |
getError() |
java.lang.String |
getMessage() |
java.lang.String |
toString() |
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 java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public java.lang.String toString()
toString
in class java.lang.Throwable
"LowLevelException: "
.public boolean addArgument(java.lang.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
.Copyright © 2014. All Rights Reserved.