Class UserNotAdminException

All Implemented Interfaces:
Serializable

public class UserNotAdminException extends PerunException
Thrown when the user is not the admin or is not in a role allowing him to do a specific action
Author:
Michal Stava
See Also:
  • Constructor Details

    • UserNotAdminException

      public UserNotAdminException(String message)
      Simple constructor with a message
      Parameters:
      message - message with details about the cause
    • UserNotAdminException

      public UserNotAdminException(String message, Throwable cause)
      Constructor with a message and Throwable object
      Parameters:
      message - message with details about the cause
      cause - Throwable that caused throwing of this exception
    • UserNotAdminException

      public UserNotAdminException(Throwable cause)
      Constructor with a Throwable object
      Parameters:
      cause - Throwable that caused throwing of this exception
    • UserNotAdminException

      public UserNotAdminException(User user)
      Constructor with the user
      Parameters:
      user - user who is not an admin
  • Method Details

    • getUser

      public User getUser()
      Getter for the user
      Returns:
      the user who is not the admin