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:
- java.io.Serializable
public class InsufficientPrivilegeException
- extends java.lang.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
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
InsufficientPrivilegeException
public InsufficientPrivilegeException(java.lang.String username)
- Parameters:
username
- the user who does not have enough privileges
InsufficientPrivilegeException
public InsufficientPrivilegeException(java.lang.String username,
java.lang.String message)
getMessage
public java.lang.String getMessage()
- Overrides:
getMessage
in class java.lang.Throwable
Copyright © 2003-2010 Atlassian. All Rights Reserved.