Skip to content

Exceptions

tilttek/loot-tables

Every exception of the library implements Tilttek\LootTables\Exception\LootException: catch it to catch them all.

ExceptionExtendsThrown when
InvalidLootInvalidArgumentExceptionAn entry, a table, a box, a catalogue, the faces of a result or a pending draw is refused
UnknownLootOutOfBoundsExceptionA catalogue holds no box or no table of that key
InvalidCodeInvalidArgumentExceptionA shop code or a draw text does not read as the dice of its box, or the box has no shop code

LootDrawer::verify() throws nothing: a proof that does not read is false.