|
EAF 7.4 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.lutris.util.KeywordValueException
com.lutris.util.ConfigException
public class 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 . |
|
ConfigException(java.lang.String msg,
java.lang.Throwable cause)
Constructs a new exception with the specified cause and a detail message. |
|
ConfigException(java.lang.Throwable cause)
Constructs a new exception with the specified cause. |
Method Summary |
---|
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, 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
,
Constant Field Valuespublic 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
,
Constant Field Valuespublic 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
,
Constant Field Valuespublic 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
,
Constant Field Valuespublic 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
,
Constant Field Valuespublic 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(java.lang.Throwable cause)
cause
- The cause (which is saved for later retrieval by the
Throwable.getCause() method).
A null value is permitted, and indicates that the cause is
nonexistent or unknown.public ConfigException(java.lang.String msg, java.lang.Throwable cause)
msg
- A detailed message describing the expection.cause
- The cause (which is saved for later retrieval by the
Throwable.getCause() method).
A null value is permitted, and indicates that the cause is
nonexistent or unknown.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
|
EAF 7.4 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |