Package dev.relism.flash.ext.jackson
Class ValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.relism.flash.exceptions.HttpException
dev.relism.flash.ext.jackson.ValidationException
- All Implemented Interfaces:
Serializable
public final class ValidationException
extends dev.relism.flash.exceptions.HttpException
Raised when a value fails its constraints. Extends
HttpException with status 422, so
Flash's default exception handler renders it without this extension registering anything.
Allocated only on failure — a passing validation constructs nothing.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordOne failed constraint. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe individual failures, in field declaration order.Methods inherited from class dev.relism.flash.exceptions.HttpException
badRequest, conflict, forbidden, forbidden, internal, notFound, status, unauthorized, unprocessableMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ValidationException
-
-
Method Details
-
violations
The individual failures, in field declaration order.
-