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

Represents exceptions when a response does not match the wire protocol. More...

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

Public Member Functions

 ProtocolException (string message, HttpStatusCode statusCode, string body)
 Initializes a new instance of the ProtocolException 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 exceptions when a response does not match the wire protocol.

Definition at line 8 of file ProtocolException.cs.

Constructor & Destructor Documentation

◆ ProtocolException()

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

Initializes a new instance of the ProtocolException 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 ProtocolException.cs.

Property Documentation

◆ ResponseBody

string Fauna.Exceptions.ProtocolException.ResponseBody
get

The response body that caused the ProtocolException to be thrown.

Definition at line 13 of file ProtocolException.cs.

◆ StatusCode

HttpStatusCode Fauna.Exceptions.ProtocolException.StatusCode
get

The HTTP status code associated with the ProtocolException.

Definition at line 18 of file ProtocolException.cs.


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