Uses of Interface
org.springframework.web.ErrorResponse
Package
Description
Common, generic interfaces that define minimal boundary points
between Spring's web infrastructure and other framework modules.
Provides web-specific data binding functionality.
Support classes for web data binding.
Support for asynchronous request processing.
Support classes for annotation-based handler method processing.
Multipart resolution framework for handling file uploads.
Support classes for the multipart resolution framework.
Provides the types that make up Spring's functional web framework for Reactive environments.
Support classes for serving static resources.
Infrastructure for annotation-based handler method processing.
Core interfaces and classes for Spring's generic, reactive web support.
Provides servlets that integrate with the application context
infrastructure, and the core interfaces and classes for the
Spring web MVC framework.
Provides the types that make up Spring's functional web framework for Servlet environments.
MVC infrastructure for annotation-based handler method processing, building on the
org.springframework.web.method.annotation
package.Support package for MVC controllers.
Support classes for serving static resources.
-
Uses of ErrorResponse in org.springframework.web
Modifier and TypeClassDescriptionclass
RuntimeException
that implementsErrorResponse
to expose an HTTP status, response headers, and a body formatted as an RFC 9457ProblemDetail
.class
Abstract base for exceptions related to media types.class
Exception thrown when the request handler cannot generate a response that is acceptable by the client.class
Exception thrown when a client POSTs, PUTs, or PATCHes content of a type not supported by request handler.class
Exception thrown when a request handler does not support a specific request method.Modifier and TypeMethodDescriptionErrorResponse.Builder.build()
Build theErrorResponse
instance.default ErrorResponse
ErrorResponse.Builder.build
(MessageSource messageSource, Locale locale) Build theErrorResponse
instance and also resolve the "detail" and "title" through the givenMessageSource
.static ErrorResponse
ErrorResponse.create
(Throwable ex, HttpStatusCode statusCode, String detail) Static factory method to build an instance viabuilder(Throwable, HttpStatusCode, String)
.Modifier and TypeMethodDescriptionvoid
ErrorResponse.Interceptor.handleError
(ProblemDetail detail, ErrorResponse errorResponse) Handle the givenProblemDetail
that's going to be rendered, and theErrorResponse
it originates from, if applicable. -
Uses of ErrorResponse in org.springframework.web.bind
Modifier and TypeClassDescriptionclass
Exception to be thrown when validation on an argument annotated with@Valid
fails.class
ServletRequestBindingException
subclass that indicates that a matrix variable expected in the method parameters of an@RequestMapping
method is not present among the matrix variables extracted from the URL.class
ServletRequestBindingException
subclass that indicates that a path variable expected in the method parameters of an@RequestMapping
method is not present among the URI variables extracted from the URL.class
ServletRequestBindingException
subclass that indicates that a request cookie expected in the method parameters of an@RequestMapping
method is not present.class
ServletRequestBindingException
subclass that indicates that a request header expected in the method parameters of an@RequestMapping
method is not present.class
Base class forServletRequestBindingException
exceptions that could not bind because the request value is required but is either missing or otherwise resolves tonull
after conversion.class
ServletRequestBindingException
subclass that indicates a missing parameter.class
Fatal binding exception, thrown when we want to treat binding exceptions as unrecoverable.class
ServletRequestBindingException
subclass that indicates an unsatisfied parameter condition, as typically expressed using an@RequestMapping
annotation at the@Controller
type level. -
Uses of ErrorResponse in org.springframework.web.bind.support
Modifier and TypeClassDescriptionclass
ServerWebInputException
subclass that indicates a data binding or validation failure. -
Uses of ErrorResponse in org.springframework.web.context.request.async
Modifier and TypeClassDescriptionclass
Exception to be thrown when an async request times out. -
Uses of ErrorResponse in org.springframework.web.method.annotation
Modifier and TypeClassDescriptionclass
ResponseStatusException
that is alsoMethodValidationResult
. -
Uses of ErrorResponse in org.springframework.web.multipart
Modifier and TypeClassDescriptionclass
MultipartException subclass thrown when an upload exceeds the maximum upload size allowed. -
Uses of ErrorResponse in org.springframework.web.multipart.support
Modifier and TypeClassDescriptionclass
Signals the part of a "multipart/form-data" request, identified by name could not be found. -
Uses of ErrorResponse in org.springframework.web.reactive.function.server
Modifier and TypeMethodDescriptionstatic reactor.core.publisher.Mono<ServerResponse>
ServerResponse.from
(ErrorResponse response) Create aServerResponse
from the givenErrorResponse
. -
Uses of ErrorResponse in org.springframework.web.reactive.resource
Modifier and TypeClassDescriptionclass
Raised whenResourceWebHandler
is mapped to the request but can not find a matching resource. -
Uses of ErrorResponse in org.springframework.web.reactive.result.method.annotation
Modifier and TypeMethodDescriptionprotected void
AbstractMessageWriterResultHandler.invokeErrorResponseInterceptors
(ProblemDetail detail, ErrorResponse errorResponse) Invoke the configuredErrorResponse.Interceptor
's. -
Uses of ErrorResponse in org.springframework.web.server
Modifier and TypeClassDescriptionclass
Exception for errors that fit response status 405 (method not allowed).class
ServerWebInputException
subclass that indicates a missing request value such as a request header, cookie value, query parameter, etc.class
Exception for errors that fit response status 406 (not acceptable).class
Exception for errors that fit response status 413 (payload too large) for use in Spring Web applications.class
Subclass ofErrorResponseException
that accepts a "reason", and by default maps that to the"detail"
of theProblemDetail
.class
Exception for anHttpStatus.INTERNAL_SERVER_ERROR
that exposes extra information about a controller method that failed, or a controller method argument that could not be resolved.class
Exception for errors that fit response status 400 (bad request) for use in Spring Web applications.class
ServerWebInputException
subclass that indicates an unsatisfied parameter condition, as typically expressed using an@RequestMapping
annotation at the@Controller
type level.class
Exception for errors that fit response status 415 (unsupported media type). -
Uses of ErrorResponse in org.springframework.web.servlet
Modifier and TypeClassDescriptionclass
Thrown when theDispatcherServlet
can't find a handler for a request, which may be handled with a configuredHandlerExceptionResolver
. -
Uses of ErrorResponse in org.springframework.web.servlet.function
Modifier and TypeMethodDescriptionstatic ServerResponse
ServerResponse.from
(ErrorResponse response) Create aServerResponse
from the givenErrorResponse
. -
Uses of ErrorResponse in org.springframework.web.servlet.mvc.method.annotation
Modifier and TypeMethodDescriptionprotected void
AbstractMessageConverterMethodProcessor.invokeErrorResponseInterceptors
(ProblemDetail detail, ErrorResponse errorResponse) Invoke the configuredErrorResponse.Interceptor
's. -
Uses of ErrorResponse in org.springframework.web.servlet.mvc.support
Modifier and TypeMethodDescriptionprotected ModelAndView
DefaultHandlerExceptionResolver.handleErrorResponse
(ErrorResponse errorResponse, HttpServletRequest request, HttpServletResponse response, Object handler) Handle anErrorResponse
exception. -
Uses of ErrorResponse in org.springframework.web.servlet.resource
Modifier and TypeClassDescriptionclass
Raised whenResourceHttpRequestHandler
can not find a resource.