-
- All Implemented Interfaces:
-
java.io.Serializable
public final class ValidationException extends ResponseStatusException
Exception thrown when a validation fails.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
ValidationException.Companion
-
Field Summary
Fields Modifier and Type Field Description private final Collection<SearchyError>
errors
private final Throwable
cause
private final String
message
-
Constructor Summary
Constructors Constructor Description ValidationException(Collection<SearchyError> errors, HttpStatus status, String reason)
-
Method Summary
Modifier and Type Method Description final Collection<SearchyError>
getErrors()
Throwable
getCause()
String
getMessage()
-
Methods inherited from class kotlin.Throwable
equals, hashCode, toString
-
Methods inherited from class java.lang.Exception
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Methods inherited from class org.springframework.web.server.ResponseStatusException
contains, getMostSpecificCause, getRootCause
-
Methods inherited from class com.weedow.searchy.exception.ValidationException
getHeaders, getRawStatusCode, getReason, getResponseHeaders, getStatus
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
ValidationException
ValidationException(Collection<SearchyError> errors, HttpStatus status, String reason)
- Parameters:
errors
- Collection of SearchyErrorsstatus
- HTTP Status used for the response.reason
- the associated reason.
-
-
Method Detail
-
getErrors
final Collection<SearchyError> getErrors()
-
getMessage
String getMessage()
-
-
-
-