14 [System.Diagnostics.CodeAnalysis.SuppressMessage(
"Microsoft.Usage",
15 "CA2237:MarkISerializableTypesWithSerializable")]
53 return "APIRequestException.RestResponse: " + (
RestResponse ==
null ?
55 "\nAPIRequestException.ServerError: " + (
ServerError ==
null ?
57 "\nAPIRequestException.Base Exception:" + Indent(
"\n" +
base.ToString());
A custom exception class that includes the RestSharp.IRestResponse that generated the exception,...
IRestRequest Request
The original request object (obtained via the IRestResponse.Request property)
IRestResponse RestResponse
The IRestResponse that generated this exception.
APIRequestException(string message, Exception innerException=null, IRestResponse restResponse=null, ServerError serverError=null)
Construct a new APIRequestException.
override string ToString()
Creates and returns a string representation of the current exception that includes a summary of the R...
Describes a collection of resources which can be listed.
Used to deserialize server error messages.