Represents an exception related to Fauna service errors, particularly for query failures. More...
Public Member Functions | |
ServiceException (string message) | |
Initializes a new instance of the ServiceException class with a specified query failure details and error message. | |
ServiceException (string message, QueryFailure failure) | |
Initializes a new instance of the ServiceException class with a specified query failure details and error message. | |
Public Member Functions inherited from Fauna.Exceptions.FaunaException | |
FaunaException (string message) | |
Initializes a FaunaException with a message. | |
FaunaException (string message, Exception innerException) | |
Initializes a FaunaException with a message and inner exception. | |
FaunaException (ErrorInfo err) | |
Initializes a FaunaException from an ErrorInfo instance. | |
Properties | |
string? | ErrorCode [get] |
The error code when a query fails. | |
IDictionary< string, string > | QueryTags [get] |
The tags on the x-query-tags header, if it was provided. | |
long? | SchemaVersion [get] |
The schema version used by the query. This can be used by clients displaying schema to determine when they should refresh their schema. If the schema version that a client has stored differs from the one returned by the query, schema should be refreshed. | |
QueryStats | Stats [get] |
The query stats for the request. | |
HttpStatusCode? | StatusCode [get, set] |
The HTTP status code. | |
string? | Summary [get] |
A comprehensive, human readable summary of any errors, warnings and/or logs returned from the query. | |
long? | TxnTs [get] |
The transaction commit time in micros since epoch. Used by drivers to populate the x-last-txn-ts request header in order to get a consistent prefix RYOW guarantee. | |
Represents an exception related to Fauna service errors, particularly for query failures.
Definition at line 9 of file ServiceException.cs.
Fauna.Exceptions.ServiceException.ServiceException | ( | string | message | ) |
Initializes a new instance of the ServiceException class with a specified query failure details and error message.
message | The error message that explains the reason for the exception. |
Definition at line 56 of file ServiceException.cs.
Fauna.Exceptions.ServiceException.ServiceException | ( | string | message, |
QueryFailure | failure | ||
) |
Initializes a new instance of the ServiceException class with a specified query failure details and error message.
message | The error message that explains the reason for the exception. |
failure | A QueryFailure |
Definition at line 67 of file ServiceException.cs.
|
get |
The error code when a query fails.
Definition at line 15 of file ServiceException.cs.
|
get |
The tags on the x-query-tags header, if it was provided.
Definition at line 20 of file ServiceException.cs.
|
get |
The schema version used by the query. This can be used by clients displaying schema to determine when they should refresh their schema. If the schema version that a client has stored differs from the one returned by the query, schema should be refreshed.
Definition at line 28 of file ServiceException.cs.
|
get |
The query stats for the request.
Definition at line 33 of file ServiceException.cs.
|
getset |
The HTTP status code.
Definition at line 38 of file ServiceException.cs.
|
get |
A comprehensive, human readable summary of any errors, warnings and/or logs returned from the query.
Definition at line 43 of file ServiceException.cs.
|
get |
The transaction commit time in micros since epoch. Used by drivers to populate the x-last-txn-ts request header in order to get a consistent prefix RYOW guarantee.
Definition at line 50 of file ServiceException.cs.