errors
Class BadAttributeValueException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by errors.GUIFileException
              extended by errors.BadAttributeException
                  extended by errors.BadAttributeValueException
All Implemented Interfaces:
Serializable

public class BadAttributeValueException
extends BadAttributeException

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 attrValue
          The value of the attribute.
 
Fields inherited from class errors.BadAttributeException
attrName, widget
 
Fields inherited from class errors.GUIFileException
lineNum
 
Constructor Summary
BadAttributeValueException(String msg, Widget widget, String attrName, Collection<String> attrValues)
           
BadAttributeValueException(String msg, Widget widget, String attrName, String attrValue)
           
BadAttributeValueException(Widget widget, String attrName, Collection<String> attrValues)
           
BadAttributeValueException(Widget widget, String attrName, String attrValue)
           
 
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

attrValue

public final String attrValue
The value of the attribute.

Constructor Detail

BadAttributeValueException

public BadAttributeValueException(Widget widget,
                                  String attrName,
                                  String attrValue)
Parameters:
widget - The widget with the invalid attribute.
attrName - The name of the invalid attribute.
attrValue - The invalid value in question.

BadAttributeValueException

public BadAttributeValueException(String msg,
                                  Widget widget,
                                  String attrName,
                                  String attrValue)
Parameters:
msg - The details to be appended to the error message.
widget - The widget with the invalid attribute.
attrName - The name of the invalid attribute.
attrValue - The invalid value in question.

BadAttributeValueException

public BadAttributeValueException(Widget widget,
                                  String attrName,
                                  Collection<String> attrValues)
Parameters:
widget - The widget with the invalid attribute.
attrName - The name of the invalid attribute.
attrValues - The whole list of values of the attribute.

BadAttributeValueException

public BadAttributeValueException(String msg,
                                  Widget widget,
                                  String attrName,
                                  Collection<String> attrValues)
Parameters:
msg - The details to be appended to the error message.
widget - The widget with the invalid attribute.
attrName - The name of the invalid attribute.
attrValues - The whole list of values of the attribute.