@ControllerAdvice public class GlobalExceptionHandler extends Object
| Constructor and Description |
|---|
GlobalExceptionHandler() |
| Modifier and Type | Method and Description |
|---|---|
Response |
exceptionHandler(Exception e) |
org.springframework.http.ResponseEntity<Response> |
exceptionHandler(FileUploadIllegalException e) |
org.springframework.http.ResponseEntity<Response> |
exceptionHandler(org.springframework.web.client.HttpStatusCodeException e) |
org.springframework.http.ResponseEntity<Response> |
exceptionHandler(org.springframework.web.multipart.MaxUploadSizeExceededException e) |
Response |
exceptionHandler(NullPointerException e) |
Response |
exceptionHandler(SQLException e) |
@ExceptionHandler(value=java.sql.SQLException.class) @ResponseBody public Response exceptionHandler(SQLException e)
@ExceptionHandler(value=java.lang.NullPointerException.class) @ResponseBody public Response exceptionHandler(NullPointerException e)
@ExceptionHandler(value=org.springframework.web.multipart.MaxUploadSizeExceededException.class) @ResponseBody public org.springframework.http.ResponseEntity<Response> exceptionHandler(org.springframework.web.multipart.MaxUploadSizeExceededException e) throws IOException
IOException@ExceptionHandler(value=FileUploadIllegalException.class) @ResponseBody public org.springframework.http.ResponseEntity<Response> exceptionHandler(FileUploadIllegalException e)
@ExceptionHandler(value=org.springframework.web.client.HttpStatusCodeException.class) @ResponseBody public org.springframework.http.ResponseEntity<Response> exceptionHandler(org.springframework.web.client.HttpStatusCodeException e)
@ExceptionHandler(value=java.lang.Exception.class) @ResponseBody public Response exceptionHandler(Exception e)
Copyright © 2025. All rights reserved.