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 checking PermissionManager#hasPermission(User, Permission, Object)
or PermissionManager#hasCreatePermission(User, Object, Class).
- See Also:
- Serialized Form
InsufficientPrivilegeException
public InsufficientPrivilegeException(String username)
- Parameters:
username - the user who does not have enough privileges
InsufficientPrivilegeException
public InsufficientPrivilegeException(String username,
String message)
getMessage
public String getMessage()
- Overrides:
getMessage in class Throwable