Skip to content

Exceptions

tilttek/tournament

Every exception of the library implements Tilttek\Tournament\Exception\TournamentException.

ExceptionRaised whenMessage, for instance
InvalidTournamentA value is out of its range or shape: an identifier, a seed, the participants, a stage, the scoring, the tie-breakers, a round or a table; or a stage, a pool, a round or a participant is unknownA Swiss stage has 1 to 64 rounds.
InvalidResultA result does not fit its table: a table unknown, a bye, a draw in an elimination, mission points out of range, no conflict to settle, no result to correctA bye has no result to enter.
RoundRefusedA round is asked for too early or too late, or a correction would leave a bracket wrongThe round 2 of the stage swiss has results missing or conflicts to settle.
TournamentConflictThe tournament changed, or was added, since it was read: nothing is keptThe tournament cup changed since it was read.
TournamentNotFoundNo tournament has the identifier in the storeNo tournament has the identifier cup.