Represents exceptions when a response does not match the wire protocol. More...
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. | |
Represents exceptions when a response does not match the wire protocol.
Definition at line 8 of file ProtocolException.cs.
Fauna.Exceptions.ProtocolException.ProtocolException | ( | string | message, |
HttpStatusCode | statusCode, | ||
string | body | ||
) |
Initializes a new instance of the ProtocolException 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 ProtocolException.cs.
|
get |
The response body that caused the ProtocolException to be thrown.
Definition at line 13 of file ProtocolException.cs.
|
get |
The HTTP status code associated with the ProtocolException.
Definition at line 18 of file ProtocolException.cs.