Skip to content

Exceptions

Exception classes for error handling.

osrs_prices.OSRSPricesError

Bases: Exception

Base exception for all OSRS Prices errors.

osrs_prices.APIError

APIError(message: str, status_code: int | None = None)

Bases: OSRSPricesError

Raised when the API returns an error response.

osrs_prices.RateLimitError

RateLimitError(message: str = 'Rate limit exceeded')

Bases: APIError

Raised when the API rate limit is exceeded.

osrs_prices.ValidationError

Bases: OSRSPricesError

Raised when input validation fails.