Constructor ServiceResponseException
ServiceResponseException()
Initializes a new instance of
ServiceResponseException.
Declaration
public ServiceResponseException()
ServiceResponseException(String)
Initializes a new instance of
ServiceResponseException with the message that
describes the current exception.
Declaration
public ServiceResponseException(string message)
Parameters
Type | Name | Description |
---|---|---|
String | message | A message that describes the current exception. |
ServiceResponseException(String, Exception)
Initializes a new instance of
ServiceResponseException with the message that
describes the current exception and an inner exception.
Declaration
public ServiceResponseException(string message, Exception inner)
Parameters
Type | Name | Description |
---|---|---|
String | message | A message that describes the current exception. |
Exception | inner | The inner exception. |
ServiceResponseException(HttpStatusCode, String, String)
Initializes a new instance of
ServiceResponseException with the HTTP status code,
HTTP status message and HTTP response message.
Declaration
public ServiceResponseException(HttpStatusCode statusCode, string reasonPhrase, string responseMessage)
Parameters
Type | Name | Description |
---|---|---|
HttpStatusCode | statusCode | HTTP status code. |
String | reasonPhrase | HTTP status message. |
String | responseMessage | Message in the body of the HTTP response. |