Package org.xwiki.security.authorization
Class AuthorizationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.xwiki.security.authorization.AuthorizationException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AccessDeniedException
,EntityTypeNotSupportedException
,UnableToRegisterRightException
public class AuthorizationException extends Exception
This is the base exception raised for various reasons by the authorization module.- Since:
- 4.0M2
- Version:
- $Id: 7d34ac7e24fc20476cac5f5a6bf065f337192a8d $
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AuthorizationException(String message)
AuthorizationException(String message, Throwable cause)
AuthorizationException(DocumentReference userReference, EntityReference entityReference)
AuthorizationException(DocumentReference userReference, EntityReference entityReference, String message)
AuthorizationException(DocumentReference userReference, EntityReference entityReference, String message, Throwable cause)
AuthorizationException(DocumentReference userReference, EntityReference entityReference, Throwable cause)
AuthorizationException(EntityReference entityReference, String message, Throwable cause)
AuthorizationException(Right right, DocumentReference userReference, EntityReference entityReference, String message)
AuthorizationException(Right right, DocumentReference userReference, EntityReference entityReference, String message, Throwable cause)
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
AuthorizationException
public AuthorizationException(String message)
- Parameters:
message
- Message.
-
AuthorizationException
public AuthorizationException(String message, Throwable cause)
- Parameters:
message
- Message.cause
- Original cause.
-
AuthorizationException
public AuthorizationException(DocumentReference userReference, EntityReference entityReference)
- Parameters:
userReference
- The user, for which the query was attempted.entityReference
- The entity, on which the query was attempted.
-
AuthorizationException
public AuthorizationException(DocumentReference userReference, EntityReference entityReference, String message)
- Parameters:
userReference
- The user, for which the query was attempted.entityReference
- The entity, on which the query was attempted.message
- Message.
-
AuthorizationException
public AuthorizationException(Right right, DocumentReference userReference, EntityReference entityReference, String message)
- Parameters:
right
- The right being checked.userReference
- The user, for which the query was attempted.entityReference
- The entity, on which the query was attempted.message
- Message.
-
AuthorizationException
public AuthorizationException(DocumentReference userReference, EntityReference entityReference, String message, Throwable cause)
- Parameters:
userReference
- The user, for which the query was attempted.entityReference
- The entity, on which the query was attempted.message
- Message.cause
- Original cause.
-
AuthorizationException
public AuthorizationException(Right right, DocumentReference userReference, EntityReference entityReference, String message, Throwable cause)
- Parameters:
right
- The right being checked.userReference
- The user, for which the query was attempted.entityReference
- The entity, on which the query was attempted.message
- Message.cause
- Original cause.
-
AuthorizationException
public AuthorizationException(EntityReference entityReference, String message, Throwable cause)
- Parameters:
entityReference
- The entity, on which the query was attempted.message
- Message.cause
- Original cause.
-
AuthorizationException
public AuthorizationException(DocumentReference userReference, EntityReference entityReference, Throwable cause)
- Parameters:
userReference
- The user, for which the query was attempted.entityReference
- The entity, on which the query was attempted.cause
- Original cause.
-
-