@ResponseStatus(value=BAD_REQUEST) public class ValidationException extends RuntimeException
ValidationException class is an exception that contains more detail about particular
fields that fails validation. It is intended to be used in the host app to return custom error
messages (if the app so chooses) and thus enabling the client of the host app to dynamically map
error messages to the particular fields that generated those validation errors.
This exception triggers HTTP 400 Bad Request.
| Constructor and Description |
|---|
ValidationException() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringCopyright © 2018. All rights reserved.