Table of Contents

Class RestSharpException

Namespace
Ecng.Net
Assembly
Ecng.Net.SocketIO.dll

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 string

The error message that explains the reason for the exception.

response RestResponse

The 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