Class AdminMappingExceptionResolver
java.lang.Object
org.springframework.web.servlet.handler.AbstractHandlerExceptionResolver
org.springframework.web.servlet.handler.SimpleMappingExceptionResolver
org.broadleafcommerce.openadmin.web.handler.AdminMappingExceptionResolver
- All Implemented Interfaces:
org.springframework.core.Ordered,org.springframework.web.servlet.HandlerExceptionResolver
public class AdminMappingExceptionResolver
extends org.springframework.web.servlet.handler.SimpleMappingExceptionResolver
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected booleanFields inherited from class org.springframework.web.servlet.handler.SimpleMappingExceptionResolver
DEFAULT_EXCEPTION_ATTRIBUTEFields 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 voidappendStackTrace(Throwable throwable, StringBuilder sb) By default, appends the exception and its message followed by the file location that triggered this exception.booleanbooleanorg.springframework.web.servlet.ModelAndViewresolveException(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Object handler, Exception ex) voidsetEnableStacktrace(boolean enableStacktrace) voidsetShowDebugMessage(boolean showDebugMessage) Methods inherited from class org.springframework.web.servlet.handler.SimpleMappingExceptionResolver
addStatusCode, applyStatusCodeIfPossible, determineStatusCode, determineViewName, doResolveException, findMatchingViewName, getDepth, getModelAndView, getModelAndView, getStatusCodesAsMap, setDefaultErrorView, setDefaultStatusCode, setExceptionAttribute, setExceptionMappings, setExcludedExceptions, setStatusCodesMethods inherited from class org.springframework.web.servlet.handler.AbstractHandlerExceptionResolver
addMappedHandlerClass, buildLogMessage, getMappedHandlerClasses, getOrder, hasHandlerMappings, logException, prepareResponse, preventCaching, setMappedHandlerClasses, setMappedHandlerPredicate, setMappedHandlers, setOrder, setPreventResponseCaching, setWarnLogCategory, shouldApplyTo
-
Field Details
-
showDebugMessage
protected boolean showDebugMessage -
enableStacktrace
protected boolean enableStacktrace
-
-
Constructor Details
-
AdminMappingExceptionResolver
public AdminMappingExceptionResolver()
-
-
Method Details
-
resolveException
public org.springframework.web.servlet.ModelAndView resolveException(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, Object handler, Exception ex) - Specified by:
resolveExceptionin interfaceorg.springframework.web.servlet.HandlerExceptionResolver- Overrides:
resolveExceptionin classorg.springframework.web.servlet.handler.AbstractHandlerExceptionResolver
-
appendStackTrace
By default, appends the exception and its message followed by the file location that triggered this exception. Recursively builds this out for each cause of the given exception.- Parameters:
throwable-sb-
-
isShowDebugMessage
public boolean isShowDebugMessage() -
setShowDebugMessage
public void setShowDebugMessage(boolean showDebugMessage) -
isEnableStacktrace
public boolean isEnableStacktrace() -
setEnableStacktrace
public void setEnableStacktrace(boolean enableStacktrace)
-