Package io.jmix.ui.exception
Class DefaultExceptionHandler
java.lang.Object
io.jmix.ui.exception.DefaultExceptionHandler
- All Implemented Interfaces:
ExceptionHandler
This exception handler comes into play if no other handler in the chain has handled the exception.
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContext
protected Messages
-
Constructor Summary
ConstructorDescriptionDefaultExceptionHandler
(org.springframework.context.ApplicationContext applicationContext) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Handle an exception.protected void
showDialog
(App app, AppUI ui, Throwable exception) protected void
showNotification
(App app, AppUI ui, Throwable exception)
-
Field Details
-
applicationContext
protected org.springframework.context.ApplicationContext applicationContext -
messages
-
-
Constructor Details
-
DefaultExceptionHandler
public DefaultExceptionHandler(org.springframework.context.ApplicationContext applicationContext)
-
-
Method Details
-
handle
Description copied from interface:ExceptionHandler
Handle an exception. Implementation class should either handle the exception and return true, or return false to delegate execution to the next handler in the chain of responsibility.- Specified by:
handle
in interfaceExceptionHandler
- Parameters:
event
- error event containing the exception, generated by Vaadinapp
- currentApp
instance- Returns:
- true if the exception has been successfully handled, false if not
-
showDialog
-
showNotification
-