@ControllerAdvice
public class RouteExceptionHandler
extends java.lang.Object
Constructor | Description |
---|---|
RouteExceptionHandler() |
Modifier and Type | Method | Description |
---|---|---|
org.springframework.http.ResponseEntity<java.lang.String> |
handleException(java.lang.Exception e) |
|
org.springframework.http.ResponseEntity<java.lang.String> |
handleFileNotFoundException(java.io.FileNotFoundException e) |
|
org.springframework.http.ResponseEntity<java.lang.String> |
handleIllegalArgumentException(java.lang.IllegalArgumentException e) |
@ExceptionHandler(java.lang.IllegalArgumentException.class) public org.springframework.http.ResponseEntity<java.lang.String> handleIllegalArgumentException(java.lang.IllegalArgumentException e)
@ExceptionHandler(java.io.FileNotFoundException.class) public org.springframework.http.ResponseEntity<java.lang.String> handleFileNotFoundException(java.io.FileNotFoundException e)
@ExceptionHandler(java.lang.Exception.class) public org.springframework.http.ResponseEntity<java.lang.String> handleException(java.lang.Exception e)