|
Enhydra 3.1 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--com.lutris.util.KeywordValueException | +--com.lutris.util.ConfigException
Exception class thrown by class Config
. If a syntax
error is found in the configuration input stream, or if a component
expects a data format for which a configuration element cannot be
converted, then this exception is thrown to indicate the error.
Config
, Serialized FormField Summary | |
static int |
COUNT
The reason field may contain this value to indicate
that a component expects a different number of elements than
are provided in the configuration file for a particular key. |
static int |
FORMAT
The reason field may contain this value to indicate
that a configuration element could not be converted from its
internal string form to the requested type. |
static int |
NOT_FOUND
The reason field may contain this value to indicate
that a syntax error in the configuration input file or stream
caused this exception. |
int |
reason
Indicates the cause (if known) of the current exception. |
static int |
SYNTAX
The reason field may contain this value to indicate
that a syntax error in the configuration input file or stream
caused this exception. |
static int |
UNKNOWN
The reason field may contain this value to indicate
that the cause of the current exception is unknown. |
Constructor Summary | |
ConfigException()
Creates a new ConfigException object with no informational string and a reason field of UNKNOWN . |
|
ConfigException(int r,
java.lang.String s)
Creates a new ConfigException object with the specified informational string and the specified reason field. |
|
ConfigException(java.lang.String s)
Creates a new ConfigException object with the specified informational string and a reason field of UNKNOWN . |
Methods inherited from class java.lang.Throwable |
fillInStackTrace,
getLocalizedMessage,
getMessage,
printStackTrace,
printStackTrace,
printStackTrace,
toString |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final int UNKNOWN
reason
field may contain this value to indicate
that the cause of the current exception is unknown.reason
public static final int NOT_FOUND
reason
field may contain this value to indicate
that a syntax error in the configuration input file or stream
caused this exception.reason
public static final int SYNTAX
reason
field may contain this value to indicate
that a syntax error in the configuration input file or stream
caused this exception.reason
public static final int COUNT
reason
field may contain this value to indicate
that a component expects a different number of elements than
are provided in the configuration file for a particular key.reason
public static final int FORMAT
reason
field may contain this value to indicate
that a configuration element could not be converted from its
internal string form to the requested type.reason
public int reason
UNKNOWN
,
SYNTAX
,
COUNT
,
FORMAT
Constructor Detail |
public ConfigException()
reason
field of UNKNOWN
.reason
public ConfigException(java.lang.String s)
reason
field of UNKNOWN
.s
- Informational string to store in the exception object.reason
public ConfigException(int r, java.lang.String s)
reason
field.s
- Informational string to store in the exception object.r
- Reason code to store in the reason
field.reason
|
Enhydra 3.1 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |