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
public class InsufficientPrivilegeException extends RuntimeException
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 checkingPermissionManager.hasPermission(com.atlassian.user.User, com.atlassian.confluence.security.Permission, Object)
orPermissionManager.hasCreatePermission(com.atlassian.user.User, Object, Class)
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InsufficientPrivilegeException(String username)
InsufficientPrivilegeException(String username, String message)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMessage()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
-