| |
|
| java.lang.Object java.lang.Throwable java.lang.Exception com.lutris.util.KeywordValueException com.lutris.util.ConfigException
ConfigException | public class ConfigException extends KeywordValueException (Code) | | 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.
See Also: Config version: $Revision: 1.2 $ author: John Marco since: Soda1.0 |
Field Summary | |
final public 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. | final public 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. | final public 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. | final public 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. | final public static int | UNKNOWN The reason field may contain this value to indicate
that the cause of the current exception is unknown. | public int | reason Indicates the cause (if known) of the current exception. |
Constructor Summary | |
public | ConfigException() Creates a new ConfigException object with no informational string
and a reason field of UNKNOWN . | public | ConfigException(String s) Creates a new ConfigException object with the specified informational
string and a reason field of UNKNOWN . | public | ConfigException(Throwable cause) Constructs a new exception with the specified cause.
Parameters: cause - The cause (which is saved for later retrieval by the Throwable.getCause() method). | public | ConfigException(String msg, Throwable cause) Constructs a new exception with the specified cause and a detail message.
Parameters: msg - A detailed message describing the expection. Parameters: cause - The cause (which is saved for later retrieval by the Throwable.getCause() method). | public | ConfigException(int r, String s) Creates a new ConfigException object with the specified informational
string and the specified reason field. |
COUNT | final public static int COUNT(Code) | | 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.
See Also: ConfigException.reason |
FORMAT | final public static int FORMAT(Code) | | 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.
See Also: ConfigException.reason |
NOT_FOUND | final public static int NOT_FOUND(Code) | | The reason field may contain this value to indicate
that a syntax error in the configuration input file or stream
caused this exception.
See Also: ConfigException.reason |
SYNTAX | final public static int SYNTAX(Code) | | The reason field may contain this value to indicate
that a syntax error in the configuration input file or stream
caused this exception.
See Also: ConfigException.reason |
UNKNOWN | final public static int UNKNOWN(Code) | | The reason field may contain this value to indicate
that the cause of the current exception is unknown.
See Also: ConfigException.reason |
ConfigException | public ConfigException()(Code) | | Creates a new ConfigException object with no informational string
and a reason field of UNKNOWN .
See Also: ConfigException.reason |
ConfigException | public ConfigException(String s)(Code) | | Creates a new ConfigException object with the specified informational
string and a reason field of UNKNOWN .
Parameters: s - Informational string to store in the exception object. See Also: ConfigException.reason |
ConfigException | public ConfigException(Throwable cause)(Code) | | Constructs a new exception with the specified cause.
Parameters: 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. |
ConfigException | public ConfigException(String msg, Throwable cause)(Code) | | Constructs a new exception with the specified cause and a detail message.
Parameters: msg - A detailed message describing the expection. Parameters: 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. |
ConfigException | public ConfigException(int r, String s)(Code) | | Creates a new ConfigException object with the specified informational
string and the specified reason field.
Parameters: s - Informational string to store in the exception object. Parameters: r - Reason code to store in the reason field. See Also: ConfigException.reason |
|
|
|