Package org.apache.uima.cas.impl
Class LowLevelException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.uima.cas.impl.LowLevelException
- All Implemented Interfaces:
Serializable
Exception class for package org.apache.uima.cas.impl. Automatically generated from message
catalog.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Error in low-level CAS APIs: trying to access value FS reference {0} as type "{2}" (code: {1}), but is "{3}".static final int
Error in low-level CAS APIs: array index and or length out of range.static final int
Error in low-level CAS APIs: array index out of range: {0}.static final int
Error in low-level CAS APIs: can't create array of type "{1}" (code: {0}).static final int
Error in low-level CAS APIs: can't create FS reference for type code {0}.static final int
Error in low-level CAS APIs: type "{1}" (code: {0}) does not define feature "{3}" (code: {2}).static final int
Error in low-level CAS APIs: feature "{1}" (code: {0}) does not take values of type "{3}" (code: {2}).static final int
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 final int
Error in low-level CAS APIs: illegal array length specified: {0}.static final int
Error in low-level CAS APIs: {0} is not a valid feature code.static final int
Error in low-level CAS APIs: attempted heap access with invalid FS reference: {0}.static final int
Error in low-level CAS APIs: trying to access index for invalid type code: {0}.static final int
Error in low-level CAS APIs: illegal type code argument: {0}.static final int
Error in low-level CAS APIs: attempting to access element {0} of array but array has null value.static final int
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 Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Field Details
-
INVALID_FS_REF
public static final int INVALID_FS_REFError in low-level CAS APIs: attempted heap access with invalid FS reference: {0}.- See Also:
-
VALUE_NOT_A_TYPE
public static final int VALUE_NOT_A_TYPEError in low-level CAS APIs: attempt to interpret heap value {0} at {1} as type code, but {0} is not a valid type code. This is likely caused by a bad FS reference.- See Also:
-
INVALID_FEATURE_CODE
public static final int INVALID_FEATURE_CODEError in low-level CAS APIs: {0} is not a valid feature code.- See Also:
-
FEAT_DOM_ERROR
public static final int FEAT_DOM_ERRORError in low-level CAS APIs: type "{1}" (code: {0}) does not define feature "{3}" (code: {2}).- See Also:
-
FEAT_RAN_ERROR
public static final int FEAT_RAN_ERRORError in low-level CAS APIs: feature "{1}" (code: {0}) does not take values of type "{3}" (code: {2}).- See Also:
-
FS_RAN_TYPE_ERROR
public static final int FS_RAN_TYPE_ERRORError in low-level CAS APIs: trying to access value of feature "{1}" (code: {0}) as FS reference, but range of feature is "{2}".- See Also:
-
ACCESS_TYPE_ERROR
public static final int ACCESS_TYPE_ERRORError in low-level CAS APIs: trying to access value FS reference {0} as type "{2}" (code: {1}), but is "{3}".- See Also:
-
ARRAY_INDEX_OUT_OF_RANGE
public static final int ARRAY_INDEX_OUT_OF_RANGEError in low-level CAS APIs: array index out of range: {0}.- See Also:
-
ARRAY_INDEX_LENGTH_OUT_OF_RANGE
public static final int ARRAY_INDEX_LENGTH_OUT_OF_RANGEError in low-level CAS APIs: array index and or length out of range. index: {0}, length: {1}.- See Also:
-
CREATE_FS_OF_TYPE_ERROR
public static final int CREATE_FS_OF_TYPE_ERRORError in low-level CAS APIs: can't create FS reference for type code {0}.- See Also:
-
INVALID_INDEX_TYPE
public static final int INVALID_INDEX_TYPEError in low-level CAS APIs: trying to access index for invalid type code: {0}.- See Also:
-
CREATE_ARRAY_OF_TYPE_ERROR
public static final int CREATE_ARRAY_OF_TYPE_ERRORError in low-level CAS APIs: can't create array of type "{1}" (code: {0}). Must be a valid (built-in) array type.- See Also:
-
ILLEGAL_ARRAY_LENGTH
public static final int ILLEGAL_ARRAY_LENGTHError in low-level CAS APIs: illegal array length specified: {0}.- See Also:
-
INVALID_TYPE_ARGUMENT
public static final int INVALID_TYPE_ARGUMENTError in low-level CAS APIs: illegal type code argument: {0}.- See Also:
-
NULL_ARRAY_ACCESS
public static final int NULL_ARRAY_ACCESSError in low-level CAS APIs: attempting to access element {0} of array but array has null value.- See Also:
-
-
Constructor Details
-
LowLevelException
public LowLevelException(int error) Create a newLowLevelException
- Parameters:
error
- The error code.
-
-
Method Details
-
getError
public int getError()- Returns:
- The error code for the exception. This may be useful when the error needs to be handed over language boundaries. Instead of handing over the complete exception object, return the error code, and the receiving application can look up the error in the message file. Unfortunately, the error parameters get lost that way.
-
getMessage
- Overrides:
getMessage
in classThrowable
- Returns:
- The message of the exception. Useful for including the text in another exception.
-
toString
-
addArgument
Add an argument to aLowLevelException
object. Excess arguments will be ignored, and missing arguments will have the valuenull
. 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 anull String
has no effect! So if you don't know the value of an argument, use something like""
or"UNKNOWN"
, but notnull
.- Parameters:
s
- -- Returns:
- -
-