Class RoleCannotBeSetException
java.lang.Object
java.lang.Throwable
java.lang.Exception
cz.metacentrum.perun.core.api.exceptions.PerunException
cz.metacentrum.perun.core.api.exceptions.RoleCannotBeSetException
- All Implemented Interfaces:
Serializable
This exception is thrown when it is not possible to set a given role.
- See Also:
-
Constructor Summary
ConstructorDescriptionRoleCannotBeSetException
(String message) Simple constructor with a messageRoleCannotBeSetException
(String message, String role) Constructor with a message and the roleRoleCannotBeSetException
(String message, String role, Throwable cause) Constructor with a message, the role and a throwableRoleCannotBeSetException
(String message, Throwable cause) Constructor with a message and Throwable objectConstructor with a Throwable objectRoleCannotBeSetException
(Throwable cause, String role) Constructor with the role and a throwable -
Method Summary
Methods inherited from class cz.metacentrum.perun.core.api.exceptions.PerunException
getErrorId, getFriendlyMessageTemplate, getMessage, getName, setErrorId
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RoleCannotBeSetException
Simple constructor with a message- Parameters:
message
- message with details about the cause
-
RoleCannotBeSetException
Constructor with a message and the role- Parameters:
message
- message with details about the causerole
- role that is not supported
-
RoleCannotBeSetException
Constructor with a message and Throwable object- Parameters:
message
- message with details about the causecause
- Throwable that caused throwing of this exception
-
RoleCannotBeSetException
Constructor with a message, the role and a throwable- Parameters:
message
- message with details about the causerole
- role that is not supportedcause
- Throwable that caused throwing of this exception
-
RoleCannotBeSetException
Constructor with a Throwable object- Parameters:
cause
- Throwable that caused throwing of this exception
-
RoleCannotBeSetException
Constructor with the role and a throwable- Parameters:
cause
- Throwable that caused throwing of this exceptionrole
- role that is not supported
-
-
Method Details
-
getRole
Getter for the role- Returns:
- role that is not supported
-