Class RestSharpException
Represents an exception that is thrown when a RestSharp operation fails.
public class RestSharpException : InvalidOperationException, ISerializable
- Inheritance
-
RestSharpException
- Implements
- Inherited Members
- Extension Methods
Constructors
RestSharpException(string, RestResponse)
Represents an exception that is thrown when a RestSharp operation fails.
public RestSharpException(string message, RestResponse response)
Parameters
message
stringThe error message that explains the reason for the exception.
response
RestResponseThe RestSharp.RestResponse associated with the failed RestSharp operation.
Properties
Response
Gets the response returned from the RestSharp call that caused the exception.
public RestResponse Response { get; }
Property Value
- RestResponse