Represents a failed query response. More...
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. | |
Represents a failed query response.
Definition at line 163 of file QueryResponse.cs.
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.
statusCode | The HTTP status code. |
json | The JSON response body. |
Definition at line 191 of file QueryResponse.cs.
|
get |
The abort object, if any. Only present for the abort error code.
Definition at line 184 of file QueryResponse.cs.
|
get |
The constraint failures, if any. Only present for the constraint_failure error code.
Definition at line 180 of file QueryResponse.cs.
|
get |
The Fauna error code.
Definition at line 172 of file QueryResponse.cs.
|
get |
The query failure message.
Definition at line 176 of file QueryResponse.cs.
|
get |
The HTTP status code.
Definition at line 168 of file QueryResponse.cs.