Package io.jmix.flowui.exception
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 Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContextprotected DefaultUiExceptionHandlerprotected List<UiExceptionHandler> -
Constructor Summary
ConstructorsConstructorDescriptionUiExceptionHandlers(List<UiExceptionHandler> handlers, DefaultUiExceptionHandler defaultUiExceptionHandler) -
Method Summary
Modifier and TypeMethodDescriptionvoiderror(com.vaadin.flow.server.ErrorEvent event) voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)
-
Field Details
-
applicationContext
protected org.springframework.context.ApplicationContext applicationContext -
handlers
-
defaultUiExceptionHandler
-
-
Constructor Details
-
UiExceptionHandlers
@Autowired public UiExceptionHandlers(List<UiExceptionHandler> handlers, DefaultUiExceptionHandler defaultUiExceptionHandler)
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
error
public void error(com.vaadin.flow.server.ErrorEvent event) - Specified by:
errorin interfacecom.vaadin.flow.server.ErrorHandler
-