Skip to content

Exceptions

tilttek/game-catalog

Every exception of the library implements Tilttek\GameCatalog\Exception\CatalogException.

ExceptionRaised whenMessage, for instance
InvalidEntryA value of an entry, an identifier, a link, an erratum, a correction or a barcode is out of its shape or its boundsThe name of a game is 1 to 200 characters.
InvalidVoteA ballot holds a vote out of its scale, more than 30 numbers of players, or no voteThe weight is from 1 to 5.
InvalidCollectionFileA collection file cannot be read as a whole, or columns or limits are not validA collection file is at most 2097152 bytes.
CatalogRefusedAn identifier, an origin or a barcode another entry holds; a link over the limit; a correction already decided, changing nothing, or over the limit of a member; a source sending another's entriesThe entry e-1 already holds rpggeek:7.
CorrectionConflictA field a correction changes was changed on the entry since it was proposed; its fields name themThe correction c-2 changes year, changed on the entry since it was proposed.
CatalogConflictThe entry or the correction changed, or was added, since it was read: nothing is keptThe entry e-1 changed since it was read.
EntryNotFoundNo entry has the identifierNo entry of the catalogue has the identifier e-9.
CorrectionNotFoundNo correction has the identifierNo correction has the identifier c-9.