Package de.dlr.proseo.ordermgr
Class CustomDefaultHandlerExceptionResolver
java.lang.Object
org.springframework.web.servlet.handler.AbstractHandlerExceptionResolver
org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver
de.dlr.proseo.ordermgr.CustomDefaultHandlerExceptionResolver
- All Implemented Interfaces:
org.springframework.core.Ordered,org.springframework.web.servlet.HandlerExceptionResolver
@Component
public class CustomDefaultHandlerExceptionResolver
extends org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver
Extend the REST Api exception handling forward message to the calling service.
This handler keep the exception and throw it again, then the ApiExceptionHandler consumes it.
- Author:
- Ernst Melchinger
-
Field Summary
Fields inherited from class org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver
PAGE_NOT_FOUND_LOG_CATEGORY, pageNotFoundLoggerFields inherited from class org.springframework.web.servlet.handler.AbstractHandlerExceptionResolver
loggerFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.web.servlet.ModelAndViewhandleHttpMessageNotReadable(org.springframework.http.converter.HttpMessageNotReadableException ex, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Object handler) Methods inherited from class org.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver
doResolveException, handleAsyncRequestNotUsableException, handleAsyncRequestTimeoutException, handleConversionNotSupported, handleDisconnectedClientException, handleErrorResponse, handleHandlerMethodValidationException, handleHttpMediaTypeNotAcceptable, handleHttpMediaTypeNotSupported, handleHttpMessageNotWritable, handleHttpRequestMethodNotSupported, handleMethodArgumentNotValidException, handleMethodValidationException, handleMissingPathVariable, handleMissingServletRequestParameter, handleMissingServletRequestPartException, handleNoHandlerFoundException, handleNoResourceFoundException, handleServletRequestBindingException, handleTypeMismatch, logException, sendServerErrorMethods inherited from class org.springframework.web.servlet.handler.AbstractHandlerExceptionResolver
addMappedHandlerClass, buildLogMessage, getMappedHandlerClasses, getOrder, hasHandlerMappings, prepareResponse, preventCaching, resolveException, setMappedHandlerClasses, setMappedHandlerPredicate, setMappedHandlers, setOrder, setPreventResponseCaching, setWarnLogCategory, shouldApplyTo
-
Constructor Details
-
CustomDefaultHandlerExceptionResolver
public CustomDefaultHandlerExceptionResolver()
-
-
Method Details
-
handleHttpMessageNotReadable
protected org.springframework.web.servlet.ModelAndView handleHttpMessageNotReadable(org.springframework.http.converter.HttpMessageNotReadableException ex, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Object handler) throws IOException - Overrides:
handleHttpMessageNotReadablein classorg.springframework.web.servlet.mvc.support.DefaultHandlerExceptionResolver- Throws:
IOException
-