public class RestErrorException extends RuntimeException
RestError
objects. Typically, these errors will be sent back as a
'400 - Bad Request' HTTP
response.Modifier and Type | Field and Description |
---|---|
List<RestError> |
errors
The list of all
RestError errors found in the request. |
Constructor and Description |
---|
RestErrorException(List<RestError> errors)
Initializes an exception with a list of errors.
|
RestErrorException(RestError error)
Initializes an exception with a single error.
|
Modifier and Type | Method and Description |
---|---|
com.fasterxml.jackson.databind.node.ObjectNode |
makeNode(Locale lang)
Returns the exception's list of Error as an
ArrayNode contained
in an ObjectNode . |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public RestErrorException(RestError error)
error
- The error to add.public com.fasterxml.jackson.databind.node.ObjectNode makeNode(Locale lang)
ArrayNode
contained
in an ObjectNode
.lang
- the language of the error messages.Copyright © 2009–2020 Waarp. All rights reserved.