public class

InsufficientPrivilegeException

extends RuntimeException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ com.atlassian.confluence.core.InsufficientPrivilegeException

Class Overview

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 hasPermission(com.atlassian.user.User, com.atlassian.confluence.security.Permission, Object) or hasCreatePermission(com.atlassian.user.User, Object, Class).

Summary

Public Constructors
InsufficientPrivilegeException(String username)
InsufficientPrivilegeException(String username, String message)
Public Methods
String getMessage()
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public InsufficientPrivilegeException (String username)

Parameters
username the user who does not have enough privileges

public InsufficientPrivilegeException (String username, String message)

Public Methods

public String getMessage ()