Exceptions
oilpriceapi.exceptions
OilPriceAPI SDK Exceptions
Custom exceptions for better error handling and debugging.
OilPriceAPIError
Bases: Exception
Base exception for all OilPriceAPI errors.
AuthenticationError
RateLimitError
Bases: OilPriceAPIError
Raised when API rate limit is exceeded.
seconds_until_reset
property
Calculate seconds until rate limit resets.