Class UiExceptionHandlers

java.lang.Object
io.jmix.flowui.exception.UiExceptionHandlers
All Implemented Interfaces:
com.vaadin.flow.server.ErrorHandler, Serializable, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

@Component("flowui_ExceptionHandlers") public class UiExceptionHandlers extends Object implements com.vaadin.flow.server.ErrorHandler, org.springframework.context.ApplicationContextAware
Class responsible for handling exceptions that occur in the UI context. It acts as a chain of responsibility for a list of UiExceptionHandler implementations to manage exceptions. If none of the handlers can process the exception, the DefaultUiExceptionHandler is used as the fallback mechanism.

This class ensures that exceptions are logged and appropriately managed to maintain application stability.

See Also:
  • Field Details

    • applicationContext

      protected org.springframework.context.ApplicationContext applicationContext
    • handlers

      protected List<UiExceptionHandler> handlers
    • defaultUiExceptionHandler

      protected DefaultUiExceptionHandler defaultUiExceptionHandler
  • Constructor Details

  • Method Details

    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException
    • error

      public void error(com.vaadin.flow.server.ErrorEvent event)
      Specified by:
      error in interface com.vaadin.flow.server.ErrorHandler