edu.rice.cs.drjava.config
Class OptionParseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.lang.IllegalArgumentException
                  extended by edu.rice.cs.drjava.config.OptionParseException
All Implemented Interfaces:
Serializable

public class OptionParseException
extends IllegalArgumentException

Exception indicating that an OptionParser could not parse the specified value for a given configurable option.

Version:
$Id: OptionParseException.java 4422 2008-03-27 15:08:58Z rcartwright $
See Also:
Serialized Form

Field Summary
 String key
           
 String message
           
 String value
           
 
Constructor Summary
OptionParseException(String key, String value, String message)
          Exception indicating that an OptionParser could not parse the specified value for a given configurable option.
 
Method Summary
 String toString()
          Format a nice message for the user.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

key

public String key

value

public String value

message

public String message
Constructor Detail

OptionParseException

public OptionParseException(String key,
                            String value,
                            String message)
Exception indicating that an OptionParser could not parse the specified value for a given configurable option.

Parameters:
key - The name of the configuration option
value - The invalid value which caused the parse error
message - Some helpful message explaining the parse error
Method Detail

toString

public String toString()
Format a nice message for the user.

Overrides:
toString in class Throwable