| Modifier and Type | Method and Description |
|---|---|
ErrorData<T> |
data()
Accumulates the errors into the
ErrorData instance. |
Error |
error(java.lang.String reason,
java.lang.String message)
Sets the error reason and message.
|
Error |
header(java.lang.String name,
java.lang.String value)
Adds header data.
|
T |
into(T response)
Injects error into the target, usually the http response.
|
T into(T response)
response - target response to setError error(java.lang.String reason, java.lang.String message)
reason - the short reason code of the errormessage - the human friendly description of the errorError header(java.lang.String name, java.lang.String value)
name - header namevalue - header value