Package com.fauna.exception
Class AuthorizationException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.fauna.exception.FaunaException
-
- com.fauna.exception.ServiceException
-
- com.fauna.exception.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
ServiceExceptionand provides access to detailed failure information through theQueryFailureresponse.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AuthorizationException(QueryFailure response)Constructs a newAuthorizationExceptionwith the specifiedQueryFailureresponse.
-
Method Summary
-
Methods inherited from class com.fauna.exception.ServiceException
getErrorCode, getQueryTags, getResponse, getSchemaVersion, getStats, getStatusCode, getSummary, getTxnTs
-
-
-
-
Constructor Detail
-
AuthorizationException
public AuthorizationException(QueryFailure response)
Constructs a newAuthorizationExceptionwith the specifiedQueryFailureresponse.- Parameters:
response- TheQueryFailureobject containing details about the authorization failure.
-
-