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 Details

    • ConstraintValidationException

      public ConstraintValidationException(@Nullable String message)
      Constructs a new exception with the specified detail message. The cause is not initialized, and may subsequently be initialized by a call to Throwable.initCause(java.lang.Throwable).
      Parameters:
      message - the detail message, which is saved for later retrieval by the Throwable.getMessage() method.
    • ConstraintValidationException

      public ConstraintValidationException(@Nullable Throwable cause)
      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 the Throwable.getCause() method). A null value is permitted, and indicates that the cause is nonexistent or unknown.
    • ConstraintValidationException

      public ConstraintValidationException(@Nullable String message, @Nullable Throwable cause)
      Constructs a new exception with the specified detail message and cause.

      Note that the detail message associated with cause is not automatically incorporated in this exception's detail message.

      Parameters:
      message - the detail message, which is saved for later retrieval by the Throwable.getMessage() method.
      cause - the cause (which is saved for later retrieval by the Throwable.getCause() method). A null value is permitted, and indicates that the cause is nonexistent or unknown.