Class AccessDeniedExceptionHandler

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

@Component("sec_AccessDeniedExceptionHandler") public class AccessDeniedExceptionHandler extends AbstractUiExceptionHandler
Handles AccessDeniedExceptionHandler that can be thrown by checking access to the dialog. Displays violation messages as on-screen notifications.
  • Field Details

    • notifications

      protected final Notifications notifications
    • messages

      protected final Messages messages
  • Constructor Details

    • AccessDeniedExceptionHandler

      public AccessDeniedExceptionHandler(Notifications notifications, Messages messages)
  • 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.