Class ConstraintViolationExceptionHandler

java.lang.Object
io.jmix.flowui.exception.AbstractUiExceptionHandler
io.jmix.flowui.exception.ConstraintViolationExceptionHandler
All Implemented Interfaces:
UiExceptionHandler

@Component public class ConstraintViolationExceptionHandler extends AbstractUiExceptionHandler
Handles ConstraintViolationException that can be thrown by bean validation on persistence layer. Displays violation messages as screen notifications.
  • Field Details

    • notifications

      @Autowired protected Notifications notifications
    • viewValidation

      @Autowired protected ViewValidation viewValidation
    • messageTools

      @Autowired protected MessageTools messageTools
  • Constructor Details

    • ConstraintViolationExceptionHandler

      public ConstraintViolationExceptionHandler()
  • Method Details

    • doHandle

      protected void doHandle(String className, String message, Throwable throwable)
      Description copied from class: AbstractUiExceptionHandler
      Perform exception handling.
      Specified by:
      doHandle in class AbstractUiExceptionHandler
      Parameters:
      className - actual exception class name
      message - exception message
      throwable - exception instance. Can be null if the exception occurred on the server side and this exception class isn't accessible by the client.