Uses of Interface
org.springframework.web.ErrorResponse.Builder
Package
Description
Common, generic interfaces that define minimal boundary points
between Spring's web infrastructure and other framework modules.
-
Uses of ErrorResponse.Builder in org.springframework.web
Modifier and TypeMethodDescriptionstatic ErrorResponse.Builder
ErrorResponse.builder
(Throwable ex, HttpStatusCode statusCode, String detail) Return a builder to create anErrorResponse
instance.Set the underlyingProblemDetail.setDetail(String)
.ErrorResponse.Builder.detailMessageArguments
(Object... messageArguments) Set the arguments to provide to theMessageSource
lookup fordetailMessageCode(String)
.ErrorResponse.Builder.detailMessageCode
(String messageCode) Customize theMessageSource
code for looking up the value for the underlyingdetail(String)
.Add the given header value(s) under the given name.ErrorResponse.Builder.headers
(Consumer<HttpHeaders> headersConsumer) Manipulate this response's headers with the given consumer.Set the underlyingProblemDetail.setInstance(URI)
field.Set a "dynamic"property
on the underlyingProblemDetail
.Set the underlyingProblemDetail.setTitle(String)
field.ErrorResponse.Builder.titleMessageCode
(String messageCode) Customize theMessageSource
code for looking up the value for the underlyingProblemDetail.setTitle(String)
.Set the underlyingProblemDetail.setTitle(String)
field.