Fauna v10 .NET/C# Driver 1.0.1
 
Loading...
Searching...
No Matches
ErrorInfo.cs
Go to the documentation of this file.
1using System.Text.Json.Serialization;
3using static Fauna.Core.ResponseFields;
4
5namespace Fauna.Core;
6
10public readonly struct ErrorInfo
11{
15 [JsonPropertyName(Error_CodeFieldName)]
16 public string? Code { get; init; }
17
21 [JsonPropertyName(Error_MessageFieldName)]
22 public string? Message { get; init; }
23
27 [JsonPropertyName(Error_ConstraintFailuresFieldName)]
28 public ConstraintFailure[] ConstraintFailures { get; init; }
29
33 [JsonPropertyName(Error_AbortFieldName)]
34 public object? Abort { get; init; }
35}
A class representing a constraint failure from Fauna.
Contains detailed information about an error in a query response.
Definition ErrorInfo.cs:11
string? Message
The detailed message describing the cause of the error.
Definition ErrorInfo.cs:22
object? Abort
The information about an abort operation within a transaction.
Definition ErrorInfo.cs:34
string? Code
The error code when a query fails.
Definition ErrorInfo.cs:16
ConstraintFailure[] ConstraintFailures
The constraint failures that occurred during the query.
Definition ErrorInfo.cs:28