public class ErrorResponse extends java.lang.Object implements RESTResponse
Modifier and Type | Class and Description |
---|---|
static class |
ErrorResponse.Builder |
Modifier and Type | Method and Description |
---|---|
static ErrorResponse.Builder |
builder() |
java.lang.Integer |
code() |
java.lang.String |
message() |
java.util.List<java.lang.String> |
stack() |
java.lang.String |
toString() |
java.lang.String |
type() |
void |
validate()
Ensures that a constructed instance of a REST message is valid according to the REST spec.
|
public void validate()
RESTMessage
This is needed when parsing data that comes from external sources and the object might have been constructed without all the required fields present.
validate
in interface RESTMessage
public java.lang.String message()
public java.lang.String type()
public java.lang.Integer code()
public java.util.List<java.lang.String> stack()
public java.lang.String toString()
toString
in class java.lang.Object
public static ErrorResponse.Builder builder()