@ControllerAdvice public class ExceptionAdvice extends Object
| Constructor and Description |
|---|
ExceptionAdvice() |
| Modifier and Type | Method and Description |
|---|---|
void |
handleAllOther(Exception exception) |
void |
handleHttpMediaTypeNotAcceptableException() |
void |
handleNotFound() |
@ResponseStatus(value=NOT_FOUND) @ExceptionHandler(value=org.springframework.security.core.userdetails.UsernameNotFoundException.class) public void handleNotFound()
@ResponseStatus(value=NOT_FOUND) @ExceptionHandler(value=org.springframework.web.HttpMediaTypeNotAcceptableException.class) public void handleHttpMediaTypeNotAcceptableException()
@ResponseStatus(value=INTERNAL_SERVER_ERROR) @ExceptionHandler(value=java.lang.Exception.class) public void handleAllOther(Exception exception)
Copyright © 2018. All rights reserved.