Package org.skr.config
Class GeneralExceptionHandler
- java.lang.Object
-
- org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
-
- org.skr.config.GeneralExceptionHandler
-
@Order(-2147483648) @ControllerAdvice public class GeneralExceptionHandler extends org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
-
-
Constructor Summary
Constructors Constructor Description GeneralExceptionHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<java.lang.Object>handleException(AuthException ex, org.springframework.web.context.request.WebRequest request)org.springframework.http.ResponseEntity<java.lang.Object>handleException(BizException ex, org.springframework.web.context.request.WebRequest request)org.springframework.http.ResponseEntity<java.lang.Object>handleException(PermissionException ex, org.springframework.web.context.request.WebRequest request)org.springframework.http.ResponseEntity<java.lang.Object>handleException(UnvarnishedFeignException ex, org.springframework.web.context.request.WebRequest request)protected org.springframework.http.ResponseEntity<java.lang.Object>handleExceptionInternal(java.lang.Exception ex, java.lang.Object body, org.springframework.http.HttpHeaders headers, org.springframework.http.HttpStatus status, org.springframework.web.context.request.WebRequest request)org.springframework.http.ResponseEntity<java.lang.Object>handleUncaughtException(java.lang.Exception ex, org.springframework.web.context.request.WebRequest request)-
Methods inherited from class org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
handleAsyncRequestTimeoutException, handleBindException, handleConversionNotSupported, handleException, handleHttpMediaTypeNotAcceptable, handleHttpMediaTypeNotSupported, handleHttpMessageNotReadable, handleHttpMessageNotWritable, handleHttpRequestMethodNotSupported, handleMethodArgumentNotValid, handleMissingPathVariable, handleMissingServletRequestParameter, handleMissingServletRequestPart, handleNoHandlerFoundException, handleServletRequestBindingException, handleTypeMismatch
-
-
-
-
Method Detail
-
handleExceptionInternal
protected org.springframework.http.ResponseEntity<java.lang.Object> handleExceptionInternal(java.lang.Exception ex, java.lang.Object body, org.springframework.http.HttpHeaders headers, org.springframework.http.HttpStatus status, org.springframework.web.context.request.WebRequest request)- Overrides:
handleExceptionInternalin classorg.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
-
handleException
@ExceptionHandler(BizException.class) public org.springframework.http.ResponseEntity<java.lang.Object> handleException(BizException ex, org.springframework.web.context.request.WebRequest request)
-
handleException
@ExceptionHandler(AuthException.class) public org.springframework.http.ResponseEntity<java.lang.Object> handleException(AuthException ex, org.springframework.web.context.request.WebRequest request)
-
handleException
@ExceptionHandler(PermissionException.class) public org.springframework.http.ResponseEntity<java.lang.Object> handleException(PermissionException ex, org.springframework.web.context.request.WebRequest request)
-
handleException
@ExceptionHandler(UnvarnishedFeignException.class) public org.springframework.http.ResponseEntity<java.lang.Object> handleException(UnvarnishedFeignException ex, org.springframework.web.context.request.WebRequest request)
-
handleUncaughtException
@ExceptionHandler(java.lang.Exception.class) public org.springframework.http.ResponseEntity<java.lang.Object> handleUncaughtException(java.lang.Exception ex, org.springframework.web.context.request.WebRequest request)
-
-