@RestControllerAdvice @ConditionalOnBean(value=EnableOptions.EnhanceExceptionMessage.class) public class EnhanceExceptionResponse extends Object
| 构造器和说明 |
|---|
EnhanceExceptionResponse() |
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
handleAccountExpiredException(AccountExpiredException e) |
Object |
handleAuthorizationException(AccessDeniedException e) |
Object |
handleException(Exception e) |
Object |
handleException(org.springframework.web.method.annotation.MethodArgumentTypeMismatchException e) |
Object |
invalidFormatException(org.springframework.http.converter.HttpMessageNotReadableException e) |
Object |
maxUploadSizeExceededException(org.springframework.web.multipart.MaxUploadSizeExceededException e) |
Object |
validatedBindException(org.springframework.validation.BindException e) |
Object |
validExceptionHandler(org.springframework.web.bind.MethodArgumentNotValidException e) |
@ExceptionHandler(value=java.nio.file.AccessDeniedException.class) public Object handleAuthorizationException(AccessDeniedException e)
@ExceptionHandler(value=javax.security.auth.login.AccountExpiredException.class) public Object handleAccountExpiredException(AccountExpiredException e)
@ExceptionHandler(value=java.lang.Exception.class) public Object handleException(Exception e)
@ExceptionHandler(value=org.springframework.web.method.annotation.MethodArgumentTypeMismatchException.class) public Object handleException(org.springframework.web.method.annotation.MethodArgumentTypeMismatchException e)
@ExceptionHandler(value=org.springframework.validation.BindException.class) public Object validatedBindException(org.springframework.validation.BindException e)
@ExceptionHandler(value=org.springframework.web.bind.MethodArgumentNotValidException.class) public Object validExceptionHandler(org.springframework.web.bind.MethodArgumentNotValidException e)
@ExceptionHandler(value=org.springframework.web.multipart.MaxUploadSizeExceededException.class) public Object maxUploadSizeExceededException(org.springframework.web.multipart.MaxUploadSizeExceededException e)
@ExceptionHandler(value=org.springframework.http.converter.HttpMessageNotReadableException.class) public Object invalidFormatException(org.springframework.http.converter.HttpMessageNotReadableException e)
Copyright © 2024. All rights reserved.