errors
Class BadOptionValueException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by errors.GUIFileException
              extended by errors.BadOptionException
                  extended by errors.BadOptionValueException
All Implemented Interfaces:
Serializable

public class BadOptionValueException
extends BadOptionException

An invalid attribute value. This will likely be thrown only by library code. As such, it permits an extra error message to be passed along, which is expected to describe the problem - for example, it might be "width must be an integer".

See Also:
Serialized Form

Field Summary
 String value
          The value of the option.
 
Fields inherited from class errors.BadOptionException
lineNum, name
 
Constructor Summary
BadOptionValueException(int lineNum, String name, String value)
           
BadOptionValueException(String msg, int lineNum, String name, String value)
           
 
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
 

Field Detail

value

public final String value
The value of the option.

Constructor Detail

BadOptionValueException

public BadOptionValueException(int lineNum,
                               String name,
                               String value)
Parameters:
lineNum - The widget with the invalid attribute.
name - The name of the invalid attribute.
value - The invalid value in question.

BadOptionValueException

public BadOptionValueException(String msg,
                               int lineNum,
                               String name,
                               String value)
Parameters:
msg - The details to be appended to the error message.
lineNum - The widget with the invalid attribute.
name - The name of the invalid attribute.
value - The invalid value in question.