Package io.jmix.ui.exception
Interface UiExceptionHandler
- All Known Implementing Classes:
AbstractUiExceptionHandler,AccessDeniedExceptionHandler,DeletePolicyExceptionHandler,FileStorageExceptionHandler,LayerLoadingExceptionHandler,OptimisticLockExceptionHandler,ReportExceptionHandler,SilentExceptionHandler,TemplateNotFoundExceptionHandler,UniqueConstraintViolationHandler,WebdavExceptionHandler
public interface UiExceptionHandler
Interface to be implemented by UI exception handlers defined.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceException handling context that provides UI infrastructure. -
Method Summary
Modifier and TypeMethodDescriptionbooleanhandle(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
-