Source code for espncricinfo.exceptions

"""Exceptions raised by python-espncricinfo."""


[docs] class MatchNotFoundError(TypeError): """Raised when a match_id is not valid or does not exist."""
[docs] class PlayerNotFoundError(TypeError): """Raised when a player_id is not valid or does not exist."""
[docs] class NoScorecardError(TypeError): """Raised when a match has no scorecard."""
[docs] class NoSeriesError(TypeError): """Raised when a series_id is not valid or does not exist."""
[docs] class NoSeasonError(TypeError): """Exception raised if a season does not exist."""
[docs] class NoTeamError(TypeError): """Exception raised if a team does not exist in a series."""
[docs] class NoGroundError(TypeError): """Raised when a ground does not exist."""