Fauna v10 .NET/C# Driver 1.0.0
 
Loading...
Searching...
No Matches
Public Member Functions | Properties | List of all members
Fauna.Exceptions.NetworkException Class Reference

Represents an exception that occurs when a request fails due to a network issue. More...

Inheritance diagram for Fauna.Exceptions.NetworkException:
Fauna.Exceptions.FaunaException

Public Member Functions

 NetworkException (string message, HttpStatusCode statusCode, string body)
 Initializes a new instance of the NetworkException class.
 
- Public Member Functions inherited from Fauna.Exceptions.FaunaException
 FaunaException (string message)
 Initializes a FaunaException with a message.
 
 FaunaException (string message, Exception innerException)
 Initializes a FaunaException with a message and inner exception.
 
 FaunaException (ErrorInfo err)
 Initializes a FaunaException from an ErrorInfo instance.
 

Properties

string ResponseBody [get]
 The response body that caused the ProtocolException to be thrown.
 
HttpStatusCode StatusCode [get]
 The HTTP status code associated with the ProtocolException.
 

Detailed Description

Represents an exception that occurs when a request fails due to a network issue.

Definition at line 8 of file NetworkException.cs.

Constructor & Destructor Documentation

◆ NetworkException()

Fauna.Exceptions.NetworkException.NetworkException ( string  message,
HttpStatusCode  statusCode,
string  body 
)

Initializes a new instance of the NetworkException class.

Parameters
messageThe error message that explains the reason for the exception.
statusCodeThe HTTP status code from the related HTTP request.
bodyThe HTTP response body that was out of protocol.

Definition at line 26 of file NetworkException.cs.

Property Documentation

◆ ResponseBody

string Fauna.Exceptions.NetworkException.ResponseBody
get

The response body that caused the ProtocolException to be thrown.

Definition at line 13 of file NetworkException.cs.

◆ StatusCode

HttpStatusCode Fauna.Exceptions.NetworkException.StatusCode
get

The HTTP status code associated with the ProtocolException.

Definition at line 18 of file NetworkException.cs.


The documentation for this class was generated from the following file: