edu.rice.cs.drjava.config
Class OptionParseException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--java.lang.IllegalArgumentException
                          |
                          +--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,v 1.2 2002/06/28 23:00:32 cmcgraw Exp $
See Also:
Serialized Form

Field Summary
 String key
           
 String message
           
 String value
           
 
Fields inherited from class java.lang.Throwable
backtrace, detailMessage, serialVersionUID
 
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, getLocalizedMessage, getMessage, printStackTrace, printStackTrace, printStackTrace, printStackTrace0
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, 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