Skip to content

Exceptions

tilttek/game-night

Every exception of the library implements Tilttek\GameNight\Exception\GameNightException.

ExceptionRaised whenMessage, for instance
InvalidNightA value of a night, a table, a sign-up, a vote, a choice or a play is out of its shape or its boundsA table has 1 to 30 seats.
NightRefusedThe night does not allow the change now: cancelled, not published, started or full, the member not signed up, the table without the free seatsThe night has started.
NightConflictThe night changed, or was added, since it was read: nothing is keptThe game night night-42 changed since it was read.
NightNotFoundNo night has the identifierNo game night has the identifier night-9.

GameNights::propose() and NightPlays::record() also let the EntryNotFound of tilttek/game-catalog through, when a game is not in the catalogue.