Class DefaultExceptionHandler

java.lang.Object
io.jmix.ui.exception.DefaultExceptionHandler
All Implemented Interfaces:
ExceptionHandler

public class DefaultExceptionHandler extends Object implements ExceptionHandler
This exception handler comes into play if no other handler in the chain has handled the exception.
  • Field Details

    • applicationContext

      protected org.springframework.context.ApplicationContext applicationContext
    • messages

      protected Messages messages
  • Constructor Details

    • DefaultExceptionHandler

      public DefaultExceptionHandler(org.springframework.context.ApplicationContext applicationContext)
  • Method Details

    • handle

      public boolean handle(com.vaadin.server.ErrorEvent event, App app)
      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 interface ExceptionHandler
      Parameters:
      event - error event containing the exception, generated by Vaadin
      app - current App instance
      Returns:
      true if the exception has been successfully handled, false if not
    • showDialog

      protected void showDialog(App app, AppUI ui, Throwable exception)
    • showNotification

      protected void showNotification(App app, AppUI ui, Throwable exception)