Fauna v10 .NET/C# Driver 0.3.0-beta
 
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
6public class ConstraintFailure
7{
8 public ConstraintFailure(string message, string name, object[][]? paths)
9 {
10 Message = message;
11 Name = name;
12 Paths = paths;
13 }
14
15 [JsonPropertyName(Error_ConstraintFailuresMessageFieldName)]
16 public string Message { get; set; }
17
18 [JsonPropertyName(Error_ConstraintFailuresNameFieldName)]
19 public string Name { get; set; }
20
21 [JsonPropertyName(Error_ConstraintFailuresPathsFieldName)]
22 public object[][]? Paths { get; set; }
23
24}
ConstraintFailure(string message, string name, object[][]? paths)