Class DefaultExceptionResolver
-
- All Implemented Interfaces:
-
org.springframework.core.Ordered,org.springframework.web.servlet.HandlerExceptionResolver
public class DefaultExceptionResolver extends SimpleExceptionResolver<T>response i18n R and log warn when CodeException; skip log when MessageException; others, response simple, and log error
- Since:
2021-03-25
trydofor
-
-
Field Summary
Fields Modifier and Type Field Description public intorderpublic final static intHIGHEST_PRECEDENCEpublic final static intLOWEST_PRECEDENCE
-
Constructor Summary
Constructors Constructor Description DefaultExceptionResolver(SimpleResponse defaultResponse, MessageSource messageSource, ObjectMapper objectMapper)
-
Method Summary
Modifier and Type Method Description -
Methods inherited from class org.springframework.web.servlet.handler.AbstractHandlerExceptionResolver
addMappedHandlerClass, getOrder, resolveException, setMappedHandlerClasses, setMappedHandlerPredicate, setMappedHandlers, setOrder, setPreventResponseCaching, setWarnLogCategory -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-