C# Client Library
A C# Client Library for the AnalyzeRe REST API
Loading...
Searching...
No Matches
NotWaitingException.cs
Go to the documentation of this file.
1using System;
2
3using RestSharp;
4
5namespace AnalyzeRe
6{
12 [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage",
13 "CA2237:MarkISerializableTypesWithSerializable")]
14 public class NotWaitingException : Exception
15 {
19 public double TimeWaited { get; set; }
20
24 public double? MaxWaitTime { get; set; }
25
30 public int? QueuePosition { get; set; }
31
35 public double? RetryTime { get; set; }
36
39 public IRestResponse RestResponse { get; set; }
40
60 string message = null,
61 double timeWaited = 0,
62 int? queuePosition = null,
63 double? retryTime = null,
64 double? maxWaitTime = null,
65 Exception innerException = null,
66 IRestResponse restResponse = null)
67 : base(message ?? "Not waiting for asynchronous request to complete.",
68 innerException)
69 {
70 TimeWaited = timeWaited;
71 QueuePosition = queuePosition;
72 RetryTime = retryTime;
73 MaxWaitTime = maxWaitTime;
74 RestResponse = restResponse;
75 }
76 }
77}
Thrown when a request requires additional time to complete, but it exceeds the time we are willing to...
double TimeWaited
The number of seconds the sender has already been waiting.
double? RetryTime
The amount of time the server suggests waiting before retrying the request.
int? QueuePosition
The server-reported queue position, indicating how many requests are ahead of this one before it can ...
IRestResponse RestResponse
The last IRestResponse (if any) that was received before this exception was raised.
double? MaxWaitTime
The number of seconds the sender would have been willing to wait.
NotWaitingException(string message=null, double timeWaited=0, int? queuePosition=null, double? retryTime=null, double? maxWaitTime=null, Exception innerException=null, IRestResponse restResponse=null)
Thrown when a request requires additional time to complete, but it exceeds the time we are willing to...