org.apache.commons.attributes.validation
Class ValidationException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.apache.commons.attributes.validation.ValidationException
All Implemented Interfaces:
Serializable

public class ValidationException
extends Exception

Thrown by AttributeValidators when an invalid set of attributes are detected.

Since:
2.1
See Also:
Serialized Form

Constructor Summary
ValidationException(Class invalidClass, String message)
          Creates a new ValidationException.
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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
Method Detail

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.