Skip to content

Exceptions

tilttek/leaderboards

Every exception of the library implements Tilttek\Leaderboards\Exception\LeaderboardsException.

ExceptionRaised whenMessage, for instance
InvalidLeaderboardA name, a board, a period, a season, a schedule, a score, a pseudonym, a circle, a limit, a timezone, a date, a league or a division number is refused, a value is reported to a board that reads the journal, or a division is asked of a board without a leagueA snapshot keeps 1 to 1000 members; the board "games" asks for 0.
UnknownBoardA board is asked for by a name none hasNo board is named "games".
UnknownPeriodA period is asked for by a code the board's schedule does not know, or a board between two seasons has no period under wayThe board "games" has no period coded "2026-13".
PeriodNotOverA snapshot is asked for a period that has not ended, or for ever, or a week of a league is settled before it endsThe period "2026-11" of the board "games" is not over: it cannot be frozen yet.

The verb patterns and the context conditions of a board are checked by tilttek/activity, which raises its own InvalidActivity.