Class RoleNotSupportedException

All Implemented Interfaces:
Serializable

public class RoleNotSupportedException extends PerunException
Checked version of RoleNotSupportedException.

This exception is thrown when somewhere in code is object Role but this role is not supported there for some reason.

Author:
Michal Stava
See Also:
  • Constructor Details

    • RoleNotSupportedException

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

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

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

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

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

      public RoleNotSupportedException(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