@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.ModelAndView |
defaultErrorHandler(Locale locale,
Exception ex)
Handle exceptions by sending all exceptions that are not hadled via
response status to the error page.
|
public static final String DEFAULT_ERROR_VIEW
@ExceptionHandler(value=java.lang.Exception.class) public org.springframework.web.servlet.ModelAndView defaultErrorHandler(Locale locale, Exception ex) throws Exception
locale - The localeex - The exception to handleException - Re-throw the caught exception if a specific handler is
declared for itCopyright © 2020 ADDC Infotech GmbH. All rights reserved.