Fauna v10 .NET/C# Driver 0.2.0-beta
 
Loading...
Searching...
No Matches
ProtocolException.cs
Go to the documentation of this file.
1using System.Net;
2
3namespace Fauna.Exceptions;
4
9{
10 public string ResponseBody { get; init; }
11
12 public HttpStatusCode StatusCode { get; init; }
13
14 public ProtocolException(string message, HttpStatusCode statusCode, string body)
15 : base(message)
16 {
17 StatusCode = statusCode;
18 ResponseBody = body;
19 }
20}
Represents the base exception class for all exceptions specific to Fauna interactions.
Represents exceptions when a response does not match the wire protocol.
ProtocolException(string message, HttpStatusCode statusCode, string body)