Package org.skr.config
Class GeneralExceptionHandler
java.lang.Object
org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
org.skr.config.GeneralExceptionHandler
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.MessageSourceAware
@Order(-2147483648)
@ControllerAdvice
public class GeneralExceptionHandler
extends org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
-
Field Summary
Fields inherited from class org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
logger, PAGE_NOT_FOUND_LOG_CATEGORY, pageNotFoundLogger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Object>handleException(AuthException ex, org.springframework.web.context.request.WebRequest request) org.springframework.http.ResponseEntity<Object>handleException(BizException ex, org.springframework.web.context.request.WebRequest request) org.springframework.http.ResponseEntity<Object>handleException(ConfException ex, org.springframework.web.context.request.WebRequest request) org.springframework.http.ResponseEntity<Object>handleException(PermissionException ex, org.springframework.web.context.request.WebRequest request) org.springframework.http.ResponseEntity<Object>handleException(UnvarnishedFeignException ex, org.springframework.web.context.request.WebRequest request) org.springframework.http.ResponseEntity<Object>handleException(ValidationException ex, org.springframework.web.context.request.WebRequest request) protected org.springframework.http.ResponseEntity<Object>handleExceptionInternal(Exception ex, Object body, org.springframework.http.HttpHeaders headers, org.springframework.http.HttpStatusCode status, org.springframework.web.context.request.WebRequest request) org.springframework.http.ResponseEntity<Object>handleUncaughtException(Exception ex, org.springframework.web.context.request.WebRequest request) Methods inherited from class org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
createProblemDetail, createResponseEntity, getMessageSource, handleAsyncRequestTimeoutException, handleBindException, handleConversionNotSupported, handleErrorResponseException, handleException, handleHttpMediaTypeNotAcceptable, handleHttpMediaTypeNotSupported, handleHttpMessageNotReadable, handleHttpMessageNotWritable, handleHttpRequestMethodNotSupported, handleMethodArgumentNotValid, handleMissingPathVariable, handleMissingServletRequestParameter, handleMissingServletRequestPart, handleNoHandlerFoundException, handleServletRequestBindingException, handleTypeMismatch, setMessageSource
-
Constructor Details
-
GeneralExceptionHandler
public GeneralExceptionHandler()
-
-
Method Details
-
handleExceptionInternal
protected org.springframework.http.ResponseEntity<Object> handleExceptionInternal(Exception ex, Object body, org.springframework.http.HttpHeaders headers, org.springframework.http.HttpStatusCode status, org.springframework.web.context.request.WebRequest request) - Overrides:
handleExceptionInternalin classorg.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
-
handleException
@ExceptionHandler(ConfException.class) public org.springframework.http.ResponseEntity<Object> handleException(ConfException ex, org.springframework.web.context.request.WebRequest request) -
handleException
@ExceptionHandler(BizException.class) public org.springframework.http.ResponseEntity<Object> handleException(BizException ex, org.springframework.web.context.request.WebRequest request) -
handleException
@ExceptionHandler(AuthException.class) public org.springframework.http.ResponseEntity<Object> handleException(AuthException ex, org.springframework.web.context.request.WebRequest request) -
handleException
@ExceptionHandler(PermissionException.class) public org.springframework.http.ResponseEntity<Object> handleException(PermissionException ex, org.springframework.web.context.request.WebRequest request) -
handleException
@ExceptionHandler(ValidationException.class) public org.springframework.http.ResponseEntity<Object> handleException(ValidationException ex, org.springframework.web.context.request.WebRequest request) -
handleException
@ExceptionHandler(UnvarnishedFeignException.class) public org.springframework.http.ResponseEntity<Object> handleException(UnvarnishedFeignException ex, org.springframework.web.context.request.WebRequest request) -
handleUncaughtException
@ExceptionHandler(java.lang.Exception.class) public org.springframework.http.ResponseEntity<Object> handleUncaughtException(Exception ex, org.springframework.web.context.request.WebRequest request)
-