@ControllerAdvice public class ExceptionAdvice extends Object
| Constructor and Description |
|---|
ExceptionAdvice() |
| Modifier and Type | Method and Description |
|---|---|
void |
handleAllOther(Exception exception) |
void |
handleInvalidParametersException(Exception exception) |
void |
handleResolvingException(Exception exception) |
void |
handleResourceNotFoundException(Exception exception) |
void |
handleUnsupportedFormatException(Exception exception) |
void |
handleUnsupportedOperationException(Exception exception) |
@ResponseStatus(value=BAD_REQUEST) @ExceptionHandler(value=InvalidParametersException.class) public void handleInvalidParametersException(Exception exception)
@ResponseStatus(value=NOT_FOUND) @ExceptionHandler(value=ResolvingException.class) public void handleResolvingException(Exception exception)
@ResponseStatus(value=NOT_FOUND) @ExceptionHandler(value=ResourceNotFoundException.class) public void handleResourceNotFoundException(Exception exception)
@ResponseStatus(value=UNSUPPORTED_MEDIA_TYPE) @ExceptionHandler(value=UnsupportedFormatException.class) public void handleUnsupportedFormatException(Exception exception)
@ResponseStatus(value=BAD_REQUEST) @ExceptionHandler(value=java.lang.UnsupportedOperationException.class) public void handleUnsupportedOperationException(Exception exception)
@ResponseStatus(value=INTERNAL_SERVER_ERROR) @ExceptionHandler(value=java.lang.Exception.class) public void handleAllOther(Exception exception)
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.