Fauna v10 .NET/C# Driver 1.0.1
 
Loading...
Searching...
No Matches
ProtocolException.cs
Go to the documentation of this file.
1using System.Net;
2
3namespace Fauna.Exceptions;
4
9{
13 public string ResponseBody { get; init; }
14
18 public HttpStatusCode StatusCode { get; init; }
19
26 public ProtocolException(string message, HttpStatusCode statusCode, string body)
27 : base(message)
28 {
29 StatusCode = statusCode;
30 ResponseBody = body;
31 }
32}
Represents the base exception class for all exceptions specific to Fauna interactions.
Represents exceptions when a response does not match the wire protocol.
HttpStatusCode StatusCode
The HTTP status code associated with the ProtocolException.
string ResponseBody
The response body that caused the ProtocolException to be thrown.
ProtocolException(string message, HttpStatusCode statusCode, string body)
Initializes a new instance of the ProtocolException class.