Logo DataHubClient

RateLimitedError Type

429 — the DataHub rejected the request for exceeding its rate limit.

Constructors

Constructor Description

RateLimitedError(body)

Full Usage: RateLimitedError(body)

Parameters:
    body : string

Returns: RateLimitedError
body : string
Returns: RateLimitedError

Inherited members

Inherited from DataHubError

Instance members

Instance member Description

this.StatusCode

Full Usage: this.StatusCode

Returns: int

The HTTP status code returned by the DataHub.

Returns: int

this.Body

Full Usage: this.Body

Returns: string

The raw response body, preserved for diagnostics.

Returns: string

Static members

Static member Description

DataHubError.FromResponse(response)

Full Usage: DataHubError.FromResponse(response)

Parameters:
    response : HttpResponse - The failed HTTP response to classify.

Returns: DataHubError An UnauthorizedError, NotFoundError, RateLimitedError, ServerError, or a plain DataHubError.

Maps an unsuccessful HttpResponse to the most specific error subclass.

response : HttpResponse

The failed HTTP response to classify.

Returns: DataHubError

An UnauthorizedError, NotFoundError, RateLimitedError, ServerError, or a plain DataHubError.

Type something to start searching.