Class ValidationException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CharSequenceTooLongException, InvalidArgumentException

@ClassVersion(sourceVersion="$Id: ValidationException.java 1293 2026-10-16 13:12:15Z tquadrat $") @API(status=STABLE, since="0.0.5") public class ValidationException extends IllegalArgumentException

This is a specialised implementation for the IllegalArgumentException that is meant as the root for a hierarchy of exceptions caused by validation errors.

Author:
Thomas Thrien (thomas.thrien@tquadrat.org)
Version:
$Id: ValidationException.java 1293 2026-10-16 13:12:15Z tquadrat $
Since:
0.0.5
See Also:
UML Diagram
UML Diagram for "org.tquadrat.foundation.exception.ValidationException"⁠

UML Diagram for "org.tquadrat.foundation.exception.ValidationException"

UML Diagram for "org.tquadrat.foundation.exception.ValidationException"⁠
  • Field Details

  • Constructor Details

    • ValidationException

      Creates a new instance of ValidationException.

    • ValidationException

      public ValidationException(String message)

      Creates a new instance of ValidationException.

      Parameters:
      message - The message that provides details on the failed validation.
    • ValidationException

      public ValidationException(String message, Throwable cause)

      Creates a new instance of ValidationException.

      Parameters:
      message - The message that provides details on the failed validation.
      cause - The exception that is related to the validation error.
    • ValidationException

      Creates a new instance of ValidationException.

      Parameters:
      cause - The exception that is related to the validation error.