Class SelfValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.dellroad.stuff.validation.SelfValidationException
- All Implemented Interfaces:
Serializable
Exception that can be thrown by
SelfValidating.checkValid(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:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor.SelfValidationException(String message) Constructor.SelfValidationException(String message, Throwable cause) Constructor.SelfValidationException(Throwable cause) Constructor. -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
SelfValidationException
public SelfValidationException()Constructor. -
SelfValidationException
Constructor.- Parameters:
message- validation error message
-
SelfValidationException
Constructor.- Parameters:
cause- underlying cause of this exception
-
SelfValidationException
-