Excepetions

This module contains all the exceptions that can be raised by the models.

exception kalista.models.exceptions.InvalidGame(game_id: int, exception: Exception)[source]

Bases: KalistaException

Raised when the game id is invalid.

property message: str

Returns the exception message.

exception kalista.models.exceptions.InvalidLeague(slug: str, exception: Exception)[source]

Bases: KalistaException

Raised when the league slug is invalid.

property message

Returns the exception message.

exception kalista.models.exceptions.InvalidMatch(match_id: int, exception: Exception)[source]

Bases: KalistaException

Raised when the match id is invalid.

property message

Returns the exception message.

exception kalista.models.exceptions.InvalidPlayer(summoner_name: str, exception: Exception)[source]

Bases: KalistaException

Raised when the player slug is invalid.

property message

Returns the exception message.

exception kalista.models.exceptions.InvalidSchedule(league_id: int, exception: Exception)[source]

Bases: KalistaException

Raised when the schedule id is invalid.

property message

Returns the exception message.

exception kalista.models.exceptions.InvalidStandings(tournament_id: int, exception: Exception)[source]

Bases: KalistaException

Raised when the standings id is invalid.

property message: str

Returns the exception message.

exception kalista.models.exceptions.InvalidTeam(slug: str, exception: Exception)[source]

Bases: KalistaException

Raised when the team slug is invalid.

property message

Returns the exception message.

exception kalista.models.exceptions.InvalidTournament(league_slug: str | None = None, tournament_id: int | None = None, exception: Exception | None = None)[source]

Bases: KalistaException

Raised when the tournament id is invalid.

property message

Returns the exception message.

exception kalista.models.exceptions.KalistaException[source]

Bases: Exception

Base exception class for Kalista.

property message

Returns the exception message.