ErrorResponse.Builder .
| Modifier and Type | Class and Description |
|---|---|
| private static class | DefaultErrorResponseBuilder.SimpleErrorResponse
Simple container for |
| Modifier and Type | Field and Description |
|---|---|
| private Object[] | |
| private String | |
| private final Throwable | |
| private HttpHeaders | |
| private final ProblemDetail | |
| private final HttpStatusCode | |
| private String | |
| private String |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| detailMessageArguments | back to summary |
|---|---|
| private Object[] detailMessageArguments
| |
| detailMessageCode | back to summary |
|---|---|
| private String detailMessageCode | |
| exception | back to summary |
|---|---|
| private final Throwable exception | |
| headers | back to summary |
|---|---|
| private HttpHeaders headers
| |
| problemDetail | back to summary |
|---|---|
| private final ProblemDetail problemDetail | |
| statusCode | back to summary |
|---|---|
| private final HttpStatusCode statusCode | |
| titleMessageCode | back to summary |
|---|---|
| private String titleMessageCode | |
| typeMessageCode | back to summary |
|---|---|
| private String typeMessageCode | |
| DefaultErrorResponseBuilder | back to summary |
|---|---|
| pack-priv DefaultErrorResponseBuilder(Throwable ex, ProblemDetail problemDetail) | |
| build | back to summary |
|---|---|
| public ErrorResponse build() Implements org. Doc from org. Build the
| |
| detail | back to summary |
|---|---|
| public ErrorResponse. Implements org. Doc from org. Set the underlying
| |
| detailMessageArguments | back to summary |
|---|---|
| public ErrorResponse. Implements org. Doc from org. Set the arguments to provide to the
| |
| detailMessageCode | back to summary |
|---|---|
| public ErrorResponse. Implements org. Doc from org. Customize the By default, set from
| |
| header | back to summary |
|---|---|
| public ErrorResponse. Implements org. Doc from org. Add the given header value(s) under the given name.
| |
| headers | back to summary |
|---|---|
| public ErrorResponse. Implements org. Doc from org. Manipulate this response's headers with the given consumer. This is
useful to overwrite or
remove existing values, or
use any other
| |
| instance | back to summary |
|---|---|
| public ErrorResponse. Implements org. Doc from org. Set the underlying
| |
| property | back to summary |
|---|---|
| public ErrorResponse. Implements org. Doc from org. Set a "dynamic"
| |
| title | back to summary |
|---|---|
| public ErrorResponse. Implements org. Doc from org. Set the underlying
| |
| titleMessageCode | back to summary |
|---|---|
| public ErrorResponse. Implements org. Doc from org. Customize the By default, set from
| |
| type | back to summary |
|---|---|
| public ErrorResponse. Implements org. Doc from org. Set the underlying
| |
| typeMessageCode | back to summary |
|---|---|
| public ErrorResponse. Implements org. Doc from org. Customize the By default, set from
| |
ErrorResponse values.
| Modifier and Type | Field and Description |
|---|---|
| private final Object[] | |
| private final String | |
| private final Throwable | |
| private final HttpHeaders | |
| private final ProblemDetail | |
| private final HttpStatusCode | |
| private final String | |
| private final String |
| Access | Constructor and Description |
|---|---|
| pack-priv | SimpleErrorResponse(Throwable ex, HttpStatusCode statusCode, HttpHeaders headers, ProblemDetail problemDetail, String typeMessageCode, String titleMessageCode, String detailMessageCode, Object[] detailMessageArguments)
|
| Modifier and Type | Method and Description |
|---|---|
| public ProblemDetail | getBody()
Implements org. ProblemDetail whose status
should match the response status.
|
| public Object[] | getDetailMessageArguments()
Overrides default org. message code to resolve the problem "detail" for this exception
through a MessageSource.
|
| public String | getDetailMessageCode()
Overrides default org. MessageSource.
|
| public HttpHeaders | getHeaders()
Overrides default org. |
| public HttpStatusCode | getStatusCode()
Implements org. |
| public String | getTitleMessageCode()
Overrides default org. MessageSource.
|
| public String | getTypeMessageCode()
Overrides default org. MessageSource.
|
| public String |
| detailMessageArguments | back to summary |
|---|---|
| private final Object[] detailMessageArguments
| |
| detailMessageCode | back to summary |
|---|---|
| private final String detailMessageCode | |
| exception | back to summary |
|---|---|
| private final Throwable exception | |
| headers | back to summary |
|---|---|
| private final HttpHeaders headers | |
| problemDetail | back to summary |
|---|---|
| private final ProblemDetail problemDetail | |
| statusCode | back to summary |
|---|---|
| private final HttpStatusCode statusCode | |
| titleMessageCode | back to summary |
|---|---|
| private final String titleMessageCode | |
| typeMessageCode | back to summary |
|---|---|
| private final String typeMessageCode | |
| SimpleErrorResponse | back to summary |
|---|---|
| pack-priv SimpleErrorResponse(Throwable ex, HttpStatusCode statusCode, HttpHeaders headers, ProblemDetail problemDetail, String typeMessageCode, String titleMessageCode, String detailMessageCode, Object[] detailMessageArguments) | |
| getBody | back to summary |
|---|---|
| public ProblemDetail getBody() Implements org. Doc from org. Return the body for the response, formatted as an RFC 7807
| |
| getDetailMessageArguments | back to summary |
|---|---|
| public Object[] getDetailMessageArguments() Overrides default org. Doc from org. Return arguments to use along with a
| |
| getDetailMessageCode | back to summary |
|---|---|
| public String getDetailMessageCode() Overrides default org. Doc from org. Return a code to use to resolve the problem "detail" for this exception
through a By default this is initialized via
| |
| getHeaders | back to summary |
|---|---|
| public HttpHeaders getHeaders() Overrides default org. Doc from org. Return headers to use for the response.
| |
| getStatusCode | back to summary |
|---|---|
| public HttpStatusCode getStatusCode() Implements org. Doc from org. Return the HTTP status code to use for the response.
| |
| getTitleMessageCode | back to summary |
|---|---|
| public String getTitleMessageCode() Overrides default org. Doc from org. Return a code to use to resolve the problem "title" for this exception
through a By default this is initialized via
| |
| getTypeMessageCode | back to summary |
|---|---|
| public String getTypeMessageCode() Overrides default org. Doc from org. Return a code to use to resolve the problem "type" for this exception
through a By default this is initialized via
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |