Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.lutris.util
Class ConfigException  view ConfigException download ConfigException.java

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.lutris.util.KeywordValueException
              extended bycom.lutris.util.ConfigException
All Implemented Interfaces:
java.io.Serializable

public class ConfigException
extends KeywordValueException

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.

Since:
Soda1.0
Version:
$Revision: 1.10.12.1 $

Nested Class Summary
 
Nested classes inherited from class java.lang.Throwable
 
Field 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.
private static int MAX_REASON
          Internal constant to indicate the highest valid reason code.
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.
 
Fields inherited from class java.lang.Exception
 
Fields inherited from class java.lang.Throwable
 
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, 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

UNKNOWN

public static final int UNKNOWN
The reason field may contain this value to indicate that the cause of the current exception is unknown.

See Also:
reason 55 , Constant Field Values

NOT_FOUND

public static final 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.

See Also:
reason 55 , Constant Field Values

SYNTAX

public static final 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.

See Also:
reason 55 , Constant Field Values

COUNT

public static final 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.

See Also:
reason 55 , Constant Field Values

FORMAT

public static final 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.

See Also:
reason 55 , Constant Field Values

MAX_REASON

private static final int MAX_REASON
Internal constant to indicate the highest valid reason code.

See Also:
reason 55 , Constant Field Values

reason

public int reason
Indicates the cause (if known) of the current exception.

See Also:
UNKNOWN 55 , SYNTAX 55 , COUNT 55 , FORMAT 55
Constructor Detail

ConfigException

public ConfigException()
Creates a new ConfigException object with no informational string and a reason field of UNKNOWN.


ConfigException

public ConfigException(java.lang.String s)
Creates a new ConfigException object with the specified informational string and a reason field of UNKNOWN.


ConfigException

public ConfigException(int r,
                       java.lang.String s)
Creates a new ConfigException object with the specified informational string and the specified reason field.