42 public long?
TxnTs {
get; init; }
55 public IDictionary<string, string>
QueryTags {
get; init; }
64 QueryTags =
new Dictionary<string, string>();
92 private readonly Dictionary<Type, object?> _cache =
new();
93 private readonly
object? _abortRaw;
103 : base(message, failure)
106 _abortRaw = failure.
Abort;
130 var typeKey = typeof(T);
131 if (_cache.TryGetValue(typeKey, out var cachedData))
return (T?)cachedData;
133 if (_abortRaw ==
null)
return (T?)cachedData;
135 var abortDataString = _abortRaw.ToString();
136 if (
string.IsNullOrEmpty(abortDataString))
return (T?)cachedData;
142 var deserializedResult = serializer.Deserialize(_ctx, ref reader);
143 _cache[typeKey] = deserializedResult;
144 return deserializedResult;
Represents an exception that occurs when the FQL abort function is called. This exception captures th...
T? GetData< T >()
Retrieves the deserialized data associated with the abort operation as a specific type.
object? GetData()
Retrieves the deserialized data associated with the abort operation as an object.
AbortException(string message, QueryFailure failure, MappingContext ctx)
Initializes a new instance of the AbortException class with a specified error message and query failu...
Represents an exception thrown for a bad gateway. Corresponds to the 'bad_gateway' error code in Faun...
BadGatewayException(string message, QueryFailure failure)
Represents an exception that occurs when a transaction is aborted due to concurrent modification....
ContendedTransactionException(string message, QueryFailure failure)
Represents the base exception class for all exceptions specific to Fauna interactions.
Represents an exception thrown when access to a resource is not allowed. Corresponds to the 'forbidde...
ForbiddenException(string message, QueryFailure failure)
Represents exceptions caused by invalid requests to Fauna.
InvalidRequestException(string message, QueryFailure failure)
HttpStatusCode StatusCode
NetworkException(string message, HttpStatusCode statusCode, string body)
Represents exceptions thrown when the query has syntax errors.
QueryCheckException(string message, QueryFailure failure)
Represents exceptions thrown when the query fails at runtime.
QueryRuntimeException(string message, QueryFailure failure)
Represents exceptions thrown when the query execution time exceeds the specified or default timeout p...
QueryTimeoutException(string message, QueryFailure failure)
Represents an exception related to Fauna service errors, particularly for query failures.
IDictionary< string, string > QueryTags
The tags on the x-query-tags header, if it was provided.
string? Summary
A comprehensive, human readable summary of any errors, warnings and/or logs returned from the query.
long? SchemaVersion
The schema version used by the query. This can be used by clients displaying schema to determine when...
HttpStatusCode? StatusCode
The HTTP status code.
string? ErrorCode
The error code when a query fails.
ServiceException(string message)
Initializes a new instance of the ServiceException class with a specified query failure details and e...
long? TxnTs
The transaction commit time in micros since epoch. Used by drivers to populate the x-last-txn-ts requ...
ServiceException(string message, QueryFailure failure)
Initializes a new instance of the ServiceException class with a specified query failure details and e...
Represents an exception that indicates some capacity limit was exceeded and thus the request could no...
ThrottlingException(string message, QueryFailure failure)
ThrottlingException(string message)
Represents exceptions thrown when the query execution time exceeds the specified or default timeout p...
TimeoutException(string message, QueryFailure failure)
Represents an exception thrown when there is an authorization error in Fauna. Corresponds to the 'una...
UnauthorizedException(string message, QueryFailure failure)
A class representing the mapping context to be used during serialization and deserialization.
Represents a failed query response.
HttpStatusCode StatusCode
QueryStats Stats
Gets the statistics related to the query execution.
Dictionary< string, string > QueryTags
Gets a dictionary of query tags, providing additional context about the query.
string Summary
Gets a summary of the query execution.
long LastSeenTxn
Gets the last transaction seen by this query.
long SchemaVersion
Gets the schema version.
Represents an interface for exceptions that are potentially recoverable through retrying the failed o...
Contains statistics related to the execution of a query in the Fauna database.
Represents a reader that provides fast, non-cached, forward-only access to serialized data.