C# Client Library
A C# Client Library for the AnalyzeRe REST API
|
A custom exception class that includes the RestSharp.IRestResponse that generated the exception, and the detailed ServerError returned, if available. More...
Public Member Functions | |
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 RestResponse and ServerError if available. | |
Properties | |
IRestRequest | Request [get] |
The original request object (obtained via the IRestResponse.Request property) | |
IRestResponse | RestResponse [get, set] |
The IRestResponse that generated this exception. | |
ServerError | ServerError [get, set] |
The ServerError object parsed from the response body, if available. | |
A custom exception class that includes the RestSharp.IRestResponse that generated the exception, and the detailed ServerError returned, if available.
APIRequestException does not need to be Serializable
Definition at line 16 of file APIRequestException.cs.
|
inline |
Construct a new APIRequestException.
message | The message that describes the error. |
innerException | (Optional) The exception that is the cause of the current exception. |
restResponse | The IRestResponse that generated this exception. |
serverError | The ServerError object parsed from the response body, if available. |
Definition at line 37 of file APIRequestException.cs.
Creates and returns a string representation of the current exception that includes a summary of the RestResponse and ServerError if available.
Definition at line 51 of file APIRequestException.cs.
|
get |
The original request object (obtained via the IRestResponse.Request property)
Definition at line 27 of file APIRequestException.cs.
|
getset |
The IRestResponse that generated this exception.
Definition at line 19 of file APIRequestException.cs.
|
getset |
The ServerError object parsed from the response body, if available.
Definition at line 23 of file APIRequestException.cs.