Package io.jmix.flowui.exception
Class ConstraintViolationExceptionHandler
java.lang.Object
io.jmix.flowui.exception.AbstractUiExceptionHandler
io.jmix.flowui.exception.ConstraintViolationExceptionHandler
- All Implemented Interfaces:
UiExceptionHandler
Handles ConstraintViolationException that can be thrown by bean validation on persistence layer.
Displays violation messages as screen notifications.
-
Field Summary
Modifier and TypeFieldDescriptionprotected MessageTools
protected Notifications
protected ViewValidation
Fields inherited from class io.jmix.flowui.exception.AbstractUiExceptionHandler
classNames
-
Constructor Summary
-
Method Summary
Methods inherited from class io.jmix.flowui.exception.AbstractUiExceptionHandler
canHandle, handle
-
Field Details
-
notifications
-
viewValidation
-
messageTools
-
-
Constructor Details
-
ConstraintViolationExceptionHandler
public ConstraintViolationExceptionHandler()
-
-
Method Details
-
doHandle
Description copied from class:AbstractUiExceptionHandler
Perform exception handling.- Specified by:
doHandle
in classAbstractUiExceptionHandler
- Parameters:
className
- actual exception class namemessage
- exception messagethrowable
- exception instance. Can be null if the exception occurred on the server side and this exception class isn't accessible by the client.
-