Represents an exception that occurs when a request fails due to a network issue. More...
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. | |
Represents an exception that occurs when a request fails due to a network issue.
Definition at line 8 of file NetworkException.cs.
Fauna.Exceptions.NetworkException.NetworkException | ( | string | message, |
HttpStatusCode | statusCode, | ||
string | body | ||
) |
Initializes a new instance of the NetworkException class.
message | The error message that explains the reason for the exception. |
statusCode | The HTTP status code from the related HTTP request. |
body | The HTTP response body that was out of protocol. |
Definition at line 26 of file NetworkException.cs.
|
get |
The response body that caused the ProtocolException to be thrown.
Definition at line 13 of file NetworkException.cs.
|
get |
The HTTP status code associated with the ProtocolException.
Definition at line 18 of file NetworkException.cs.