Package io.jmix.ui.exception
Interface UiExceptionHandler
- All Known Implementing Classes:
AbstractUiExceptionHandler
,AccessDeniedExceptionHandler
,DeletePolicyExceptionHandler
,FileStorageExceptionHandler
,LayerLoadingExceptionHandler
,OptimisticLockExceptionHandler
,ReportExceptionHandler
,TemplateNotFoundExceptionHandler
,UniqueConstraintViolationHandler
,WebdavExceptionHandler
public interface UiExceptionHandler
Interface to be implemented by exception handlers defined on GUI level.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Exception handling context that provides UI beans. -
Method Summary
Modifier and TypeMethodDescriptionboolean
handle
(Throwable exception, UiExceptionHandler.UiContext context) Handle an exception.
-
Method Details
-
handle
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.- Parameters:
exception
- exception instancecontext
- UI context- Returns:
- true if the exception has been successfully handled, false if not
-