com.pietschy.command.configuration
Class IllegalFormatException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.pietschy.command.configuration.ParseException
              extended by com.pietschy.command.configuration.IllegalFormatException
All Implemented Interfaces:
java.io.Serializable

public class IllegalFormatException
extends ParseException

Thrown when an error occurs parsing a configuration item.

See Also:
Serialized Form

Nested Class Summary
static class IllegalFormatException.Type
          Enum listing format types.
 
Constructor Summary
IllegalFormatException(java.lang.String key, java.lang.String value, IllegalFormatException.Type types)
          Creates a new instance.
IllegalFormatException(java.lang.String line, java.lang.String key, java.lang.String value, IllegalFormatException.Type type)
          Creates a new instance.
 
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
 

Constructor Detail

IllegalFormatException

public IllegalFormatException(java.lang.String key,
                              java.lang.String value,
                              IllegalFormatException.Type types)
Creates a new instance.

Parameters:
key - the property key.
value - the property value.
types - the expected format.

IllegalFormatException

public IllegalFormatException(java.lang.String line,
                              java.lang.String key,
                              java.lang.String value,
                              IllegalFormatException.Type type)
Creates a new instance.

Parameters:
line - the full text of the line in the configuraiton file in error.
key - the property key.
value - the property value.
type - the expected format.


Copyright © 2006 - 2007 Andrew Pietsch