Class AuthorizationException

  • All Implemented Interfaces:
    java.io.Serializable

    public class AuthorizationException
    extends ServiceException
    Exception thrown when an authorization error occurs in Fauna. This typically indicates that the Fauna authentication secret does not have permissions required to perform the requested operation.

    Extends ServiceException and provides access to detailed failure information through the QueryFailure response.

    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      AuthorizationException​(QueryFailure response)
      Constructs a new AuthorizationException with the specified QueryFailure response.
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, 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​(QueryFailure response)
        Constructs a new AuthorizationException with the specified QueryFailure response.
        Parameters:
        response - The QueryFailure object containing details about the authorization failure.