Table of Contents

Class MassiveRateLimitExceededException

Namespace
MassiveDotNet
Assembly
MassiveDotNet.dll

Thrown when the Massive platform API rejects a request with HTTP 429.

public sealed class MassiveRateLimitExceededException : MassiveApiException, ISerializable
Inheritance
MassiveRateLimitExceededException
Implements
Inherited Members

Constructors

MassiveRateLimitExceededException(string, Duration?, string?)

Initializes a new instance of the MassiveRateLimitExceededException class.

public MassiveRateLimitExceededException(string message, Duration? retryAfter = null, string? requestId = null)

Parameters

message string

The error message, preferring the server-supplied text.

retryAfter Duration?

How long to wait before retrying, from the Retry-After header.

requestId string

The server-assigned request identifier, when present.

Properties

RetryAfter

How long the server asked the caller to wait before retrying, when it supplied a Retry-After header carrying a delta-seconds value.

public Duration? RetryAfter { get; }

Property Value

Duration?

Remarks

null when the header was absent, or when it carried an HTTP-date rather than a delta. The date form is not converted, because doing so would mean trusting the local clock against the server's; treat null as "no hint given" and fall back to your own backoff policy.