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
FieldsModifier and TypeFieldDescriptionprotected MessageToolsprotected Notificationsprotected ViewValidationFields inherited from class io.jmix.flowui.exception.AbstractUiExceptionHandler
classNames -
Constructor Summary
Constructors -
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:AbstractUiExceptionHandlerPerform exception handling.- Specified by:
doHandlein 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.
-