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
ServiceException
and provides access to detailed failure information through theQueryFailure
response.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AuthorizationException(QueryFailure response)
Constructs a newAuthorizationException
with the specifiedQueryFailure
response.
-
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 newAuthorizationException
with the specifiedQueryFailure
response.- Parameters:
response
- TheQueryFailure
object containing details about the authorization failure.
-
-