Package org.apache.uima.internal.util
Class UtilError
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.uima.internal.util.UtilError
- All Implemented Interfaces:
- Serializable
Exception class for package org.apache.uima.util. Automatically generated from message catalog.
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intOut of bounds error while retrieving daughter node.static final intIndex out of bounds error while retrieving predecessor node.static final intIndex out of bounds error while retrieving successor node.
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
- 
Field Details- 
ILLEGAL_DTR_INDEXpublic static final int ILLEGAL_DTR_INDEXOut of bounds error while retrieving daughter node.- See Also:
 
- 
ILLEGAL_SUCCESSOR_INDEXpublic static final int ILLEGAL_SUCCESSOR_INDEXIndex out of bounds error while retrieving successor node.- See Also:
 
- 
ILLEGAL_PREDECESSOR_INDEXpublic static final int ILLEGAL_PREDECESSOR_INDEXIndex out of bounds error while retrieving predecessor node.- See Also:
 
 
- 
- 
Constructor Details- 
UtilErrorpublic UtilError(int error) Create a newUtilError- Parameters:
- error- The error code.
 
 
- 
- 
Method Details- 
getErrorpublic 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:
- getMessagein class- Throwable
- Returns:
- The message of the exception. Useful for including the text in another exception.
 
- 
toString
- 
addArgumentAdd an argument to aUtilErrorobject. 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 Stringhas no effect! So if you don't know the value of an argument, use something like""or"UNKNOWN", but notnull.- Parameters:
- s- -
- Returns:
- -
 
 
-