Fauna v10 .NET/C# Driver 1.0.1
 
Loading...
Searching...
No Matches
ConstraintFailure.cs
Go to the documentation of this file.
1using System.Text.Json.Serialization;
2using static Fauna.Core.ResponseFields;
3
4namespace Fauna.Exceptions;
5
9public class ConstraintFailure
10{
17 public ConstraintFailure(string message, string name, object[][]? paths)
18 {
19 Message = message;
20 Name = name;
21 Paths = paths;
22 }
23
27 [JsonPropertyName(Error_ConstraintFailuresMessageFieldName)]
28 public string Message { get; set; }
29
33 [JsonPropertyName(Error_ConstraintFailuresNameFieldName)]
34 public string Name { get; set; }
35
39 [JsonPropertyName(Error_ConstraintFailuresPathsFieldName)]
40 public object[][]? Paths { get; set; }
41
42}
A class representing a constraint failure from Fauna.
ConstraintFailure(string message, string name, object[][]? paths)
Initializes a new ConstraintFailure.
string Message
The constraint failure message describing the specific check that failed.
string Name
The constraint failure name.
object?[][] Paths
The constraint failure paths.