Skip to content

Exceptions

tilttek/score-sheets

Every exception of the library implements Tilttek\ScoreSheets\Exception\ScoreSheetsException.

ExceptionRaised whenMessage, for instance
InvalidSheetA declaration does not hold together, or does not decode: a key, a label or a bound refused, a category that reads one declared after it, an operation out of its bounds, JSON too long or brokenThe category "fleet" reads "boats", which is not declared before it.
InvalidEntryA value, a participant, a team or an identifier is refused, or a result is too large to computeThe category "boats" takes a value between 0 and 12.
IllegalTransitionThe status of the sheet refuses the changeA closed sheet takes no score: reopen it first.
UnknownMatchThe store holds no sheet for that matchThe store holds no sheet for the match "m-2031".
ConcurrentChangeThe sheet changed since the version the change was made onThe sheet of the match "m-2031" is at version 4, not 3.