@ControllerAdvice public class GlobalControllerExceptionHandler extends Object
| Constructor and Description |
|---|
GlobalControllerExceptionHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
handleAuthorizationException(javax.servlet.http.HttpServletResponse response,
Exception e) |
void |
handleException(javax.servlet.http.HttpServletResponse response,
Exception e) |
@ExceptionHandler(value=UnauthorizedException.class) @ResponseBody @ResponseStatus(code=UNAUTHORIZED) public void handleAuthorizationException(javax.servlet.http.HttpServletResponse response, Exception e) throws IOException
IOException@ExceptionHandler(value=java.lang.Exception.class) @ResponseBody @ResponseStatus(value=INTERNAL_SERVER_ERROR) public void handleException(javax.servlet.http.HttpServletResponse response, Exception e) throws IOException
IOExceptionCopyright © 2014–2018 Healthcare Services Platform Consortium. All rights reserved.