C# Client Library
A C# Client Library for the AnalyzeRe REST API
Loading...
Searching...
No Matches
RequestTimeoutException.cs
Go to the documentation of this file.
1using System;
2using RestSharp;
3
4namespace AnalyzeRe {
8 [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage",
9 "CA2237:MarkISerializableTypesWithSerializable")]
10 public class RequestTimeoutException : TimeoutException
11 {
13 public IRestResponse RestResponse { get; set; }
14
17 public IRestRequest Request => RestResponse?.Request;
18
26 string message,
27 Exception innerException = null,
28 IRestResponse restResponse = null)
29 : base(message, innerException)
30 {
31 RestResponse = restResponse;
32 }
33 }
34}
Extends the TimeoutException class to contain the IRestResponse that timed out.
IRestRequest Request
The original request object (obtained via the IRestResponse.Request property)
RequestTimeoutException(string message, Exception innerException=null, IRestResponse restResponse=null)
Construct a new RequestTimeoutException.
IRestResponse RestResponse
The IRestResponse that generated this exception.