DALRateLimitError

exception pyvo.dal.DALRateLimitError(reason=None, *, code=429, cause=None, url=None, retry_after_seconds=None, retry_after_raw=None, retry_after_date=None)[source]

Exception for HTTP 429 Too Many Requests responses.

This exception is raised when a DAL service returns a 429 status code, indicating that the client has exceeded a rate limit. It provides structured access to retry timing information from the Retry-After header via the retry_after_seconds, retry_after_raw, and retry_after_date properties.

Initialize the rate limit exception.

Parameters:
reasonstr

A message describing the error.

codeint

The HTTP status code (default 429).

causeException

The underlying exception that caused this error.

urlstr

The query URL that produced the error.

retry_after_secondsint or None

Seconds to wait before retrying.

retry_after_rawstr or None

Raw Retry-After header value.

retry_after_datedatetime or None

Parsed datetime if header was HTTP-date format.