Skip to content

Get Sansar

Script API

ThrottleException

Where: Client
More page actions

For the complete documentation index, see llms.txt. This page is also available as Markdown.

Class Namespace Sansar.Script Inherits Exception

Thrown when a method is called too often

public class ThrottleException : Exception

Remarks

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

KindMembers
FieldsElapsed · Interval · MaxEvents

Fields

Elapsed

public readonly TimeSpan Elapsed

The 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 Interval

The 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 MaxEvents

The 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.