RestSharpException

Ecng.Net

Represents an exception that is thrown when a RestSharp operation fails.

Наследует: InvalidOperationException

Конструкторы

RestSharpException
public RestSharpException(string message, RestResponse response)
restSharpException = RestSharpException(message, response)

Represents an exception that is thrown when a RestSharp operation fails.

message
The error message that explains the reason for the exception.
response
The RestResponse associated with the failed RestSharp operation.

Свойства

Response
public RestResponse Response { get; }
value = restSharpException.Response

Gets the response returned from the RestSharp call that caused the exception.