public class RestError extends Object implements Serializable
RestErrors
factory
class. To objectToJson a Error
object as a JSON String to be sent
back, use the
objectToJson
method with the desired Error
object and Locale
. To objectToJson an
entire list of errors, use the serializeErrors
method instead.Modifier and Type | Method and Description |
---|---|
com.fasterxml.jackson.databind.node.ObjectNode |
makeNode(Locale lang)
Returns the error as an
ObjectNode . |
public com.fasterxml.jackson.databind.node.ObjectNode makeNode(Locale lang)
ObjectNode
.lang
- the language of the error messageCopyright © 2009–2020 Waarp. All rights reserved.