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(com.atlassian.user.User, com.atlassian.confluence.security.Permission, Object) or PermissionManager.hasCreatePermission(com.atlassian.user.User, Object, Class).
See Also:
  • Constructor Details

    • InsufficientPrivilegeException

      public InsufficientPrivilegeException(String username)
      Parameters:
      username - the user who does not have enough privileges
    • InsufficientPrivilegeException

      public InsufficientPrivilegeException(String username, String message)
  • Method Details