|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.uima.internal.util.UtilError
public class UtilError
Exception class for package org.apache.uima.util. Automatically generated from message catalog.
Field Summary | |
---|---|
static int |
ILLEGAL_DTR_INDEX
Out of bounds error while retrieving daughter node. |
static int |
ILLEGAL_PREDECESSOR_INDEX
Index out of bounds error while retrieving predecessor node. |
static int |
ILLEGAL_SUCCESSOR_INDEX
Index out of bounds error while retrieving successor node. |
Constructor Summary | |
---|---|
UtilError(int error)
Create a new UtilError |
Method Summary | |
---|---|
boolean |
addArgument(java.lang.String s)
Add an argument to a UtilError object. |
int |
getError()
|
java.lang.String |
getMessage()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int ILLEGAL_DTR_INDEX
public static final int ILLEGAL_SUCCESSOR_INDEX
public static final int ILLEGAL_PREDECESSOR_INDEX
Constructor Detail |
---|
public UtilError(int error)
UtilError
error
- The error code.Method Detail |
---|
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
"UtilError: "
.public boolean addArgument(java.lang.String s)
UtilError
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
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |