类 SimpleHandlerExceptionHandler

java.lang.Object
cn.taketoday.core.OrderedSupport
cn.taketoday.web.handler.AbstractHandlerExceptionHandler
cn.taketoday.web.handler.SimpleHandlerExceptionHandler
所有已实现的接口:
cn.taketoday.core.Ordered, HandlerExceptionHandler

public class SimpleHandlerExceptionHandler extends AbstractHandlerExceptionHandler implements HandlerExceptionHandler
The default implementation of the HandlerExceptionHandler interface, resolving standard Framework MVC exceptions and translating them to corresponding HTTP status codes.

This exception handler is enabled by default in the common Framework DispatcherHandler.

Supported Exceptions
Exception HTTP Status Code

HttpRequestMethodNotSupportedException

405 (SC_METHOD_NOT_ALLOWED)

HttpMediaTypeNotSupportedException

415 (SC_UNSUPPORTED_MEDIA_TYPE)

HttpMediaTypeNotAcceptableException

406 (SC_NOT_ACCEPTABLE)

MissingPathVariableException

500 (SC_INTERNAL_SERVER_ERROR)

MissingServletRequestParameterException

400 (SC_BAD_REQUEST)

MissingRequestPartException

400 (SC_BAD_REQUEST)

ServletRequestBindingException

400 (SC_BAD_REQUEST)

ConversionNotSupportedException

500 (SC_INTERNAL_SERVER_ERROR)

TypeMismatchException

400 (SC_BAD_REQUEST)

HttpMessageNotReadableException

400 (SC_BAD_REQUEST)

HttpMessageNotWritableException

500 (SC_INTERNAL_SERVER_ERROR)

MethodArgumentNotValidException

400 (SC_BAD_REQUEST)

BindException

400 (SC_BAD_REQUEST)

HandlerNotFoundException

404 (SC_NOT_FOUND)

AsyncRequestTimeoutException

503 (SC_SERVICE_UNAVAILABLE)

从以下版本开始:
2020-03-29 21:01
作者:
Arjen Poutsma, Rossen Stoyanchev, Juergen Hoeller, Harry Yang
另请参阅: