org.xwiki.security.authorization
Class AuthorizationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by 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$
See Also:
Serialized Form

Constructor Summary
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(String message, Throwable cause)
           
 
Method Summary
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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

AuthorizationException

public AuthorizationException(String message,
                              Throwable cause)
Parameters:
message - Message.
cause - Original cause.
See Also:
Exception

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.
See Also:
Exception

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.
See Also:
Exception

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.
See Also:
Exception

AuthorizationException

public AuthorizationException(EntityReference entityReference,
                              String message,
                              Throwable cause)
Parameters:
entityReference - The entity, on which the query was attempted.
message - Message.
cause - Original cause.
See Also:
Exception

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.
See Also:
Exception


Copyright © 2004-2012 XWiki. All Rights Reserved.