Class RoleCannotBeSetException

All Implemented Interfaces:
Serializable

public class RoleCannotBeSetException extends PerunException
This exception is thrown when it is not possible to set a given role.
See Also:
  • Constructor Details

    • RoleCannotBeSetException

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

      public RoleCannotBeSetException(String message, String role)
      Constructor with a message and the role
      Parameters:
      message - message with details about the cause
      role - role that is not supported
    • RoleCannotBeSetException

      public RoleCannotBeSetException(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
    • RoleCannotBeSetException

      public RoleCannotBeSetException(String message, String role, Throwable cause)
      Constructor with a message, the role and a throwable
      Parameters:
      message - message with details about the cause
      role - role that is not supported
      cause - Throwable that caused throwing of this exception
    • RoleCannotBeSetException

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

      public RoleCannotBeSetException(Throwable cause, String role)
      Constructor with the role and a throwable
      Parameters:
      role - role that is not supported
      cause - Throwable that caused throwing of this exception
  • Method Details

    • getRole

      public String getRole()
      Getter for the role
      Returns:
      role that is not supported