Module dev.metaschema.core
Class ConstraintValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
dev.metaschema.core.model.constraint.ConstraintValidationException
- All Implemented Interfaces:
Serializable
Indicates a constraint validation failure.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstraintValidationException(String message) Constructs a new exception with the specified detail message.ConstraintValidationException(String message, Throwable cause) Constructs a new exception with the specified detail message and cause.Constructs a new exception with the specified cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ConstraintValidationException
Constructs a new exception with the specified detail message. The cause is not initialized, and may subsequently be initialized by a call toThrowable.initCause(java.lang.Throwable).- Parameters:
message- the detail message, which is saved for later retrieval by theThrowable.getMessage()method.
-
ConstraintValidationException
Constructs a new exception with the specified cause.If the cause has a detail message (i.e.
(cause==null ? null : cause.toString())then the message provided by the cause will be used.This constructor is useful for when this exception is raised as a wrapper of another exception.
- Parameters:
cause- the cause (which is saved for later retrieval by theThrowable.getCause()method). Anullvalue is permitted, and indicates that the cause is nonexistent or unknown.
-
ConstraintValidationException
Constructs a new exception with the specified detail message and cause.Note that the detail message associated with
causeis not automatically incorporated in this exception's detail message.- Parameters:
message- the detail message, which is saved for later retrieval by theThrowable.getMessage()method.cause- the cause (which is saved for later retrieval by theThrowable.getCause()method). Anullvalue is permitted, and indicates that the cause is nonexistent or unknown.
-