org.apache.commons.attributes.validation
Class ValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.commons.attributes.validation.ValidationException
- All Implemented Interfaces:
- Serializable
- public class ValidationException
- extends Exception
Thrown by AttributeValidator
s when an invalid set of
attributes are detected.
- Since:
- 2.1
- See Also:
- Serialized Form
Method Summary |
Class |
getInvalidClass()
Returns the class that triggered the ValidationExeption to
be thrown. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
ValidationException
public ValidationException(Class invalidClass,
String message)
- Creates a new ValidationException.
- Parameters:
invalidClass
- the class whose attributes are
invalid.message
- a message describing why the attributes are invalid.- Since:
- 2.1
getInvalidClass
public Class getInvalidClass()
- Returns the class that triggered the ValidationExeption to
be thrown.
- Since:
- 2.1
Copyright © The Apache Software Foundation. All Rights Reserved.