Class DynamicModelDuplicateDataExceptionHandler

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

@Component("dynmod_DynamicModelDuplicateDataExceptionHandler") @Order(940) public class DynamicModelDuplicateDataExceptionHandler extends AbstractUiExceptionHandler
Presents DynamicModelDuplicateDataException thrown during apply as a user-friendly notification instead of the generic unexpected-error dialog.
  • Field Details

    • messages

      @Autowired protected Messages messages
    • notifications

      @Autowired protected Notifications notifications
  • Constructor Details

    • DynamicModelDuplicateDataExceptionHandler

      public DynamicModelDuplicateDataExceptionHandler()
  • Method Details

    • doHandle

      protected void doHandle(String className, String message, @Nullable 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.