Uses of Interface
org.springframework.web.ErrorResponse.Builder
Packages that use 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
Methods in org.springframework.web that return ErrorResponse.BuilderModifier and TypeMethodDescriptionstatic ErrorResponse.BuilderErrorResponse.builder(Throwable ex, HttpStatusCode statusCode, String detail) Return a builder to create anErrorResponseinstance.static ErrorResponse.BuilderErrorResponse.builder(Throwable ex, ProblemDetail problemDetail) Variant ofErrorResponse.builder(Throwable, HttpStatusCode, String)for use with a customProblemDetailinstance.Set the underlyingdetail.ErrorResponse.Builder.detailMessageArguments(Object... messageArguments) Set the arguments to provide to theMessageSourcelookup forErrorResponse.Builder.detailMessageCode(String).ErrorResponse.Builder.detailMessageCode(String messageCode) Customize theMessageSourcecode to use to resolve the value for theErrorResponse.Builder.detail(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 underlyinginstancefield.Set a "dynamic"propertyon the underlyingProblemDetail.Set the underlyingtitlefield.ErrorResponse.Builder.titleMessageCode(String messageCode) Customize theMessageSourcecode to use to resolve the value forProblemDetail.setTitle(String).Set the underlyingtypefield.ErrorResponse.Builder.typeMessageCode(String messageCode) Customize theMessageSourcecode to use to resolve the value forProblemDetail.setType(URI).