Skip to content

Exceptions

tilttek/collections

Every exception of the library implements Tilttek\Collections\Exception\CollectionsException.

ExceptionRaised whenMessage, for instance
InvalidCollectionA code, a text, a rarity, a die, a reward, an item, a set, a pack, a catalog, a key, a day, a date, a seed or a verb list is refused"Pirate" is not a item code: 1 to 64 lower-case letters, digits, "_", "." or "-", starting with a letter.
NotFoundA rarity, an item, a set, a pack or a copy is asked for by a code none hasNo item is named "parrot".
CollectionRefusedA key already gave something else, a copy does not belong to the member who gives it or changed hands meanwhile, a copy chosen is not a dieThe key "order:1" already gave another copy.

The verb patterns of the projection are checked by tilttek/activity.