@ControllerAdvice public class GlobalExceptionHandler extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_ERROR_VIEW |
| Constructor and Description |
|---|
GlobalExceptionHandler() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.web.servlet.view.RedirectView |
defaultErrorHandler(javax.servlet.http.HttpServletRequest req,
Exception e) |
org.springframework.web.servlet.view.RedirectView |
egovErrorHandler(javax.servlet.http.HttpServletRequest req,
ApplicationRuntimeException e) |
public static final String DEFAULT_ERROR_VIEW
@ExceptionHandler(value=java.lang.Exception.class) public org.springframework.web.servlet.view.RedirectView defaultErrorHandler(javax.servlet.http.HttpServletRequest req, Exception e) throws Exception
Exception@ExceptionHandler(value=ApplicationRuntimeException.class) public org.springframework.web.servlet.view.RedirectView egovErrorHandler(javax.servlet.http.HttpServletRequest req, ApplicationRuntimeException e) throws Exception
ExceptionCopyright © 2015–2017 eGovernments Foundation. All rights reserved.