FantraxException

exception fantraxapi.exceptions.FantraxException[source]

Base class for all FantraxAPI exceptions.

DateNotInSeason

exception fantraxapi.exceptions.DateNotInSeason(error_date: str | date | datetime)[source]

Exception thrown when trying to query with a date not in the Season

NotLoggedIn

exception fantraxapi.exceptions.NotLoggedIn[source]

Exception thrown when accessing a private endpoint without being Logged In

NotMemberOfLeague

exception fantraxapi.exceptions.NotMemberOfLeague[source]

Exception thrown when accessing an endpoint without being part of that League

NotTeamInLeague

exception fantraxapi.exceptions.NotTeamInLeague[source]

Exception thrown when trying to query for a Team not part of that League

PeriodNotInSeason

exception fantraxapi.exceptions.PeriodNotInSeason(error_date: str | int)[source]

Exception thrown when trying to query with a period not in the Season