rheise.jftpd
Class ParseException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--rheise.jftpd.ParseException
- public class ParseException
- extends java.lang.Exception
This exception is thrown if there is an error parsing a configuration file.
- See Also:
- Serialized Form
Field Summary |
static int |
PROPERTY_INVALID
This reason is specified if the named property was invalid. |
static int |
PROPERTY_UNDEFINED
This reason is specified if the named property was undefined. |
private java.lang.String |
propertyName
The name of the property that could not be read. |
private java.lang.String |
propertyValue
The value of the property that could not be read. |
private int |
reason
The reason for this exception. |
Fields inherited from class java.lang.Throwable |
backtrace,
detailMessage,
serialVersionUID |
Constructor Summary |
ParseException(int reason,
java.lang.String propertyName,
java.lang.String propertyValue)
Creates a ParseException with the specified reason, propertyName
and propertyValue. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace,
getLocalizedMessage,
printStackTrace,
printStackTrace,
printStackTrace,
printStackTrace0,
toString |
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
wait,
wait,
wait |
PROPERTY_UNDEFINED
public static final int PROPERTY_UNDEFINED
- This reason is specified if the named property was undefined.
PROPERTY_INVALID
public static final int PROPERTY_INVALID
- This reason is specified if the named property was invalid.
reason
private int reason
- The reason for this exception.
propertyName
private java.lang.String propertyName
- The name of the property that could not be read.
propertyValue
private java.lang.String propertyValue
- The value of the property that could not be read. If propertyValue
is null, this indicates that the property value was not specified
in the configuration file.
ParseException
public ParseException(int reason,
java.lang.String propertyName,
java.lang.String propertyValue)
- Creates a ParseException with the specified reason, propertyName
and propertyValue. The propertyValue may be null.
getReason
public int getReason()
- Returns:
- the reason for this exception.
getPropertyName
public java.lang.String getPropertyName()
- Returns:
- the name of the property that could not be read.
getPropertyValue
public java.lang.String getPropertyValue()
- Returns:
- the value of the property that could not be read.
getMessage
public java.lang.String getMessage()
- Overrides:
- getMessage in class java.lang.Throwable
- Returns:
- the message associated with this ParseException.