@ControllerAdvice @Order(value=0) public class SpringExceptionHandler extends Object
| Constructor and Description |
|---|
SpringExceptionHandler() |
| Modifier and Type | Method and Description |
|---|---|
Object |
handleSpringException(Exception ex,
org.springframework.web.method.HandlerMethod handlerMethod) |
Object |
handleSpringException(Exception ex,
javax.servlet.http.HttpServletRequest httpServletRequest) |
@ExceptionHandler(value={org.springframework.web.servlet.mvc.multiaction.NoSuchRequestHandlingMethodException.class,org.springframework.web.servlet.NoHandlerFoundException.class})
public final Object handleSpringException(Exception ex,
javax.servlet.http.HttpServletRequest httpServletRequest)
@ExceptionHandler(value={org.springframework.web.HttpRequestMethodNotSupportedException.class,org.springframework.web.HttpMediaTypeNotSupportedException.class,org.springframework.web.HttpMediaTypeNotAcceptableException.class,org.springframework.web.bind.MissingPathVariableException.class,org.springframework.web.bind.MissingServletRequestParameterException.class,org.springframework.web.bind.ServletRequestBindingException.class,org.springframework.beans.ConversionNotSupportedException.class,org.springframework.beans.TypeMismatchException.class,org.springframework.http.converter.HttpMessageNotReadableException.class,org.springframework.http.converter.HttpMessageNotWritableException.class,org.springframework.web.bind.MethodArgumentNotValidException.class,org.springframework.web.multipart.support.MissingServletRequestPartException.class,org.springframework.validation.BindException.class,org.springframework.web.context.request.async.AsyncRequestTimeoutException.class})
public final Object handleSpringException(Exception ex,
org.springframework.web.method.HandlerMethod handlerMethod)
Copyright © 2018. All rights reserved.