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.static ErrorResponse.Builder
ErrorResponse.builder
(Throwable ex, ProblemDetail problemDetail) Variant ofErrorResponse.builder(Throwable, HttpStatusCode, String)
for use with a customProblemDetail
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 to use to resolve the value for thedetail(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 underlyinginstance
field.Set a "dynamic"property
on the underlyingProblemDetail
.Set the underlyingtitle
field.ErrorResponse.Builder.titleMessageCode
(String messageCode) Customize theMessageSource
code to use to resolve the value forProblemDetail.setTitle(String)
.Set the underlyingtype
field.ErrorResponse.Builder.typeMessageCode
(String messageCode) Customize theMessageSource
code to use to resolve the value forProblemDetail.setType(URI)
.