public class UtilError extends RuntimeException
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
UtilError(int error)
Create a new
UtilError |
Modifier and Type | Method and Description |
---|---|
boolean |
addArgument(String s)
Add an argument to a
UtilError object. |
int |
getError() |
String |
getMessage() |
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public static final int ILLEGAL_DTR_INDEX
public static final int ILLEGAL_SUCCESSOR_INDEX
public static final int ILLEGAL_PREDECESSOR_INDEX
public UtilError(int error)
UtilError
error
- The error code.public int getError()
public String getMessage()
getMessage
in class Throwable
public String toString()
public boolean addArgument(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
.s
- -Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.