Class UserNotAdminException
java.lang.Object
java.lang.Throwable
java.lang.Exception
cz.metacentrum.perun.core.api.exceptions.PerunException
cz.metacentrum.perun.core.api.exceptions.UserNotAdminException
- All Implemented Interfaces:
Serializable
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 Summary
ConstructorDescriptionUserNotAdminException
(User user) Constructor with the userUserNotAdminException
(String message) Simple constructor with a messageUserNotAdminException
(String message, Throwable cause) Constructor with a message and Throwable objectUserNotAdminException
(Throwable cause) Constructor with a Throwable object -
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
-
UserNotAdminException
Simple constructor with a message- Parameters:
message
- message with details about the cause
-
UserNotAdminException
Constructor with a message and Throwable object- Parameters:
message
- message with details about the causecause
- Throwable that caused throwing of this exception
-
UserNotAdminException
Constructor with a Throwable object- Parameters:
cause
- Throwable that caused throwing of this exception
-
UserNotAdminException
Constructor with the user- Parameters:
user
- user who is not an admin
-
-
Method Details
-
getUser
Getter for the user- Returns:
- the user who is not the admin
-