类 GlobalExceptionHandler
java.lang.Object
tech.riemann.etp.starter.exception.GlobalExceptionHandler
- 作者:
- Kerbores(kerbores@riemann.tech)
-
构造器详细资料
-
GlobalExceptionHandler
public GlobalExceptionHandler()
-
-
方法详细资料
-
defaultErrorHandler
@ExceptionHandler(java.lang.Exception.class) @ResponseStatus(INTERNAL_SERVER_ERROR) public GlobalError defaultErrorHandler(Exception e) -
bizExceptionHandler
@ExceptionHandler(BizException.class) @ResponseStatus(INTERNAL_SERVER_ERROR) public GlobalError bizExceptionHandler(Exception e) -
handle
@ExceptionHandler(jakarta.validation.ValidationException.class) @ResponseStatus(BAD_REQUEST) public GlobalError handle(jakarta.validation.ValidationException e) -
validate
@ExceptionHandler(org.springframework.web.bind.MethodArgumentNotValidException.class) @ResponseStatus(BAD_REQUEST) public GlobalError validate(org.springframework.web.bind.MethodArgumentNotValidException e) -
authentication
@ExceptionHandler(tech.riemann.etp.auth.AuthenticationException.class) @ResponseStatus(UNAUTHORIZED) public GlobalError authentication(AuthenticationException e) -
authorization
@ExceptionHandler(tech.riemann.etp.auth.AuthorizationException.class) @ResponseStatus(FORBIDDEN) public GlobalError authorization(AuthorizationException e)
-