Exceptions#
Generic Exceptions#
- class fastf1.exceptions.FastF1CriticalError[source]#
Bases:
RuntimeErrorBase class for unrecoverable exceptions that occur during internal data processing. These exceptions are always raised to the user and data processing is terminated.
- class fastf1.exceptions.RateLimitExceededError[source]#
Bases:
FastF1CriticalErrorRaised if a hard rate limit is exceeded for any API.
Data Loading Exceptions#
- class fastf1.exceptions.DataNotLoadedError[source]#
Bases:
ExceptionRaised if an attempt is made to access data that has not been loaded yet.
Jolpica-F1 (Ergast) Specific Exceptions#
- class fastf1.exceptions.ErgastJsonError[source]#
Bases:
ErgastErrorThe response returned by the server could not be parsed.
- class fastf1.exceptions.ErgastInvalidRequestError[source]#
Bases:
ErgastErrorThe server rejected the request because it was invalid.
Legacy Exceptions (deprecated)#
- class fastf1._api.SessionNotAvailableError(*args)[source]#
Raised if an api request returned no data for the requested session. A likely cause is that the session does not exist because it was cancelled.
Warning
This exception is provided by the
fastf1.apisubmodule. It will be considered private in future releases and potentially be removed or changed.