Fauna v10 .NET/C# Driver 0.2.0-beta
 
Loading...
Searching...
No Matches
Fauna.QueryFailure Class Referencesealed

Represents a failed query response. More...

Inheritance diagram for Fauna.QueryFailure:
Fauna.QueryResponse

Public Member Functions

 QueryFailure (HttpStatusCode statusCode, JsonElement json)
 Initializes a new instance of the QueryFailure class, parsing the provided raw response text to extract error information.
 

Properties

HttpStatusCode StatusCode [get]
 
string ErrorCode = "" [get]
 
string Message = "" [get]
 
object? ConstraintFailures [get]
 
object? Abort [get]
 
- Properties inherited from Fauna.QueryResponse
JsonElement RawJson [get]
 
long LastSeenTxn [get]
 Gets the last transaction seen by this query.
 
long SchemaVersion [get]
 Gets the schema version.
 
string Summary = "" [get]
 Gets a summary of the query execution.
 
Dictionary< string, string > QueryTags = new() [get]
 Gets a dictionary of query tags, providing additional context about the query.
 
QueryStats Stats [get]
 Gets the statistics related to the query execution.
 

Additional Inherited Members

- Static Public Member Functions inherited from Fauna.QueryResponse
static ? QueryResponse GetFromResponseBody< T > (MappingContext ctx, ISerializer< T > serializer, HttpStatusCode statusCode, string body)
 Asynchronously parses the HTTP response message to create a QueryResponse instance.
 
- Package Functions inherited from Fauna.QueryResponse

Detailed Description

Represents a failed query response.

Definition at line 159 of file QueryResponse.cs.

Constructor & Destructor Documentation

◆ QueryFailure()

Fauna.QueryFailure.QueryFailure ( HttpStatusCode statusCode,
JsonElement json )

Initializes a new instance of the QueryFailure class, parsing the provided raw response text to extract error information.

Parameters
statusCodeThe HTTP status code.
jsonThe JSON response body.

Definition at line 172 of file QueryResponse.cs.

Property Documentation

◆ Abort

object? Fauna.QueryFailure.Abort
get

Definition at line 165 of file QueryResponse.cs.

◆ ConstraintFailures

object? Fauna.QueryFailure.ConstraintFailures
get

Definition at line 164 of file QueryResponse.cs.

◆ ErrorCode

string Fauna.QueryFailure.ErrorCode = ""
get

Definition at line 162 of file QueryResponse.cs.

◆ Message

string Fauna.QueryFailure.Message = ""
get

Definition at line 163 of file QueryResponse.cs.

◆ StatusCode

HttpStatusCode Fauna.QueryFailure.StatusCode
get

Definition at line 161 of file QueryResponse.cs.


The documentation for this class was generated from the following file: