public class UtilError
extends java.lang.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(java.lang.String s)
Add an argument to a
UtilError object. |
int |
getError() |
java.lang.String |
getMessage() |
java.lang.String |
toString() |
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)
UtilErrorerror - The error code.public int getError()
public java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic 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.Copyright © 2013. All Rights Reserved.