org.dellroad.stuff.validation
Class SelfValidationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.dellroad.stuff.validation.SelfValidationException
All Implemented Interfaces:
Serializable

public class SelfValidationException
extends Exception

Exception that can be thrown by SelfValidating.checkValid(javax.validation.ConstraintValidatorContext).

Instances will be automatically caught and converted into a constraint violation using the exception's message if any, otherwise the default message.

See Also:
SelfValidating, Serialized Form

Constructor Summary
SelfValidationException()
           
SelfValidationException(String message)
           
SelfValidationException(String message, Throwable cause)
           
SelfValidationException(Throwable cause)
           
 
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
 

Constructor Detail

SelfValidationException

public SelfValidationException()

SelfValidationException

public SelfValidationException(String message)

SelfValidationException

public SelfValidationException(Throwable cause)

SelfValidationException

public SelfValidationException(String message,
                               Throwable cause)