com.atlassian.confluence.core
Class InsufficientPrivilegeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by 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(com.atlassian.user.User , com.atlassian.confluence.security.Permission , Object) or PermissionManager.hasCreatePermission(com.atlassian.user.User , Object, Class).

See Also:
Serialized Form

Constructor Summary
InsufficientPrivilegeException(java.lang.String username)
           
InsufficientPrivilegeException(java.lang.String username, java.lang.String message)
           
 
Method Summary
 java.lang.String getMessage()
           
 
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
 

Constructor Detail

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)
Method Detail

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable


Copyright © 2003-2010 Atlassian. All Rights Reserved.