Fauna v10 .NET/C# Driver 1.0.1
 
Loading...
Searching...
No Matches
Public Member Functions | Properties | List of all members
Fauna.Core.QueryFailure Class Referencesealed

Represents a failed query response. More...

Inheritance diagram for Fauna.Core.QueryFailure:
Fauna.Core.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]
 The HTTP status code.
 
string ErrorCode = "" [get]
 The Fauna error code.
 
string Message = "" [get]
 The query failure message.
 
ConstraintFailure?[] ConstraintFailures [get]
 The constraint failures, if any. Only present for the constraint_failure error code.
 
object? Abort [get]
 The abort object, if any. Only present for the abort error code.
 
- Properties inherited from Fauna.Core.QueryResponse
JsonElement RawJson [get]
 The raw JSON of the query response.
 
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.Core.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.
 

Detailed Description

Represents a failed query response.

Definition at line 163 of file QueryResponse.cs.

Constructor & Destructor Documentation

◆ QueryFailure()

Fauna.Core.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 191 of file QueryResponse.cs.

Property Documentation

◆ Abort

object? Fauna.Core.QueryFailure.Abort
get

The abort object, if any. Only present for the abort error code.

Definition at line 184 of file QueryResponse.cs.

◆ ConstraintFailures

ConstraintFailure? [] Fauna.Core.QueryFailure.ConstraintFailures
get

The constraint failures, if any. Only present for the constraint_failure error code.

Definition at line 180 of file QueryResponse.cs.

◆ ErrorCode

string Fauna.Core.QueryFailure.ErrorCode = ""
get

The Fauna error code.

Definition at line 172 of file QueryResponse.cs.

◆ Message

string Fauna.Core.QueryFailure.Message = ""
get

The query failure message.

Definition at line 176 of file QueryResponse.cs.

◆ StatusCode

HttpStatusCode Fauna.Core.QueryFailure.StatusCode
get

The HTTP status code.

Definition at line 168 of file QueryResponse.cs.


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