Class AccessDeniedException

  • All Implemented Interfaces:
    Serializable

    public class AccessDeniedException
    extends AuthorizationException
    Exception raised by the AuthorizationManager when denying access.
    Since:
    4.0M2
    Version:
    $Id: e5739761103b38c2ff83f7c769a949b18ed036a2 $
    See Also:
    Serialized Form
    • Constructor Detail

      • AccessDeniedException

        public AccessDeniedException​(DocumentReference userReference,
                                     EntityReference entityReference)
        Parameters:
        userReference - The user, for which the query was attempted.
        entityReference - The entity, on which the query was attempted.
      • AccessDeniedException

        public AccessDeniedException​(Right right,
                                     DocumentReference userReference,
                                     EntityReference entityReference)
        Parameters:
        right - The right currently being checked.
        userReference - The user, for which the query was attempted.
        entityReference - The entity, on which the query was attempted.
      • AccessDeniedException

        public AccessDeniedException​(DocumentReference userReference,
                                     EntityReference entityReference,
                                     Throwable t)
        Parameters:
        userReference - The user, for which the query was attempted.
        entityReference - The entity, on which the query was attempted.
        t - a Throwable providing details about the underlying cause.
      • AccessDeniedException

        public AccessDeniedException​(Right right,
                                     DocumentReference userReference,
                                     EntityReference entityReference,
                                     Throwable t)
        Parameters:
        right - The right currently being checked.
        userReference - The user, for which the query was attempted.
        entityReference - The entity, on which the query was attempted.
        t - a Throwable providing details about the underlying cause.