@ControllerAdvice
public class GlobalControllerExceptionHandler
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
private static java.lang.String |
DEFAULT_ERROR_VIEW |
|
private static org.apache.log4j.Logger |
logger |
Constructor | Description |
---|---|
GlobalControllerExceptionHandler() |
Modifier and Type | Method | Description |
---|---|---|
org.springframework.web.servlet.ModelAndView |
defaultErrorHandler(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
java.lang.Exception e) |
Handle exceptions threw by controllers.
|
private static final java.lang.String DEFAULT_ERROR_VIEW
private static final org.apache.log4j.Logger logger
@ExceptionHandler(java.lang.Exception.class) public org.springframework.web.servlet.ModelAndView defaultErrorHandler(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, java.lang.Exception e)
req
- HttpServletRequest instancee
- Exception instance