Class ValidationException

All Implemented Interfaces:
Serializable

public class ValidationException extends FunctionalException
Indicates that a request (typically a command or query) contains one or more field-level violations that prevent further processing.

The violations set contains a sorted list of human-readable violation messages.

See Also:
  • Constructor Details

    • ValidationException

      @ConstructorProperties({"message","violations"}) public ValidationException(String message, Set<String> violations)
      Creates a validation exception with a formatted message and the complete set of violation messages.
      Parameters:
      message - formatted exception message
      violations - individual violation messages