Thrown when a method is called too often
public class ThrottleException : ExceptionRemarks
The ThrottleException class has information about the throttle rate and how fast the throttle was hit. This exception is thrown before any action is taken by the method.
Members at a glance
| Kind | Members |
|---|---|
| Fields | Elapsed · Interval · MaxEvents |
Fields
Elapsed
public readonly TimeSpan ElapsedThe timespan during which ThrottleException.MaxEvents method calls have happened.
Remarks
Elapsed is a measure of how fast the throttle was hit. All ThrottleException.MaxEvents have happened within the last Elapsed time span.
Interval
public readonly TimeSpan IntervalThe timespan during which at most ThrottleException.MaxEvents can happen without hitting the throttle.
Remarks
ThrottleException is thrown if there have already been ThrottleException.MaxEvents successful calls to this method during the last Interval timespan.
MaxEvents
public readonly int MaxEventsThe maximum number of method calls allowed per ThrottleException.Interval
Remarks
Method calls past MaxEvents during ThrottleException.Interval will throw an exception and not be counted as events.
Used in examples
Generated from the Sansar 47.10.0 client ScriptApi snapshot.