@ControllerAdvice public class RestExceptionHandler extends Object
ApplicationException, it will be serialized to an ErrorReport
TechnicalError will replace it for serialization.| Constructor and Description |
|---|
RestExceptionHandler() |
| Modifier and Type | Method and Description |
|---|---|
ErrorReport |
handleApplicationException(ApplicationException e) |
ErrorReport |
handleException(Exception e) |
@ResponseStatus(value=INTERNAL_SERVER_ERROR) @ExceptionHandler(value=org.sklsft.commons.api.exception.ApplicationException.class) @ResponseBody public ErrorReport handleApplicationException(ApplicationException e)
@ResponseStatus(value=INTERNAL_SERVER_ERROR) @ExceptionHandler(value=java.lang.Exception.class) @ResponseBody public ErrorReport handleException(Exception e)
Copyright © 2017. All rights reserved.