Fauna v10 .NET/C# Driver 1.0.0
 
Loading...
Searching...
No Matches
NetworkException.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 NetworkException(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 an exception that occurs when a request fails due to a network issue.
HttpStatusCode StatusCode
The HTTP status code associated with the ProtocolException.
NetworkException(string message, HttpStatusCode statusCode, string body)
Initializes a new instance of the NetworkException class.
string ResponseBody
The response body that caused the ProtocolException to be thrown.