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 the multipart resolution framework.
Provides the types that make up Spring's functional web framework for Reactive environments.
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.
Support package for MVC controllers.
-
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 7807ProblemDetail
.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.static ErrorResponse
ErrorResponse.create
(Throwable ex, HttpStatusCode statusCode, String detail) Static factory method to build an instance viabuilder(Throwable, HttpStatusCode, String)
. -
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.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.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
Subclass ofErrorResponseException
that accepts a "reason" and maps it to the "detail" property ofProblemDetail
.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
By default, when the DispatcherServlet can't find a handler for a request it sends a 404 response. -
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.support
Modifier and TypeMethodDescriptionprotected ModelAndView
DefaultHandlerExceptionResolver.handleErrorResponse
(ErrorResponse errorResponse, HttpServletRequest request, HttpServletResponse response, Object handler) Handle anErrorResponse
exception.