Package com.atlassian.confluence.core
Class InsufficientPrivilegeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.atlassian.confluence.core.InsufficientPrivilegeException
- All Implemented Interfaces:
Serializable
Runtime exception that is thrown when a user tries to perform an operation without the required privileges.
Please ensure you have the appropriate privileges first by checking
PermissionManager.hasPermission(com.atlassian.user.User, com.atlassian.confluence.security.Permission, Object)
or PermissionManager.hasCreatePermission(com.atlassian.user.User, Object, Class)
.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInsufficientPrivilegeException
(String username) InsufficientPrivilegeException
(String username, String message) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InsufficientPrivilegeException
- Parameters:
username
- the user who does not have enough privileges
-
InsufficientPrivilegeException
-
-
Method Details
-
getMessage
- Overrides:
getMessage
in classThrowable
-