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 underlyingdetail
.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
.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 underlyinginstance
field.Set a "dynamic"property
on the underlyingProblemDetail
.Set the underlyingtitle
field.ErrorResponse.Builder.titleMessageCode
(String messageCode) Customize theMessageSource
code for looking up the value for the underlyingtitle
.Set the underlyingtype
field.