Skip to content

Exceptions

tilttek/dice-jail

Every exception implements Exception\DiceJailException.

ExceptionExtendsThrown when
InvalidRollsInvalidArgumentExceptionA face the die cannot show, more than 1 000 000 rolls, fewer than 2 or more than 1 000 faces, an empty range, an estimated or cut distribution, a face too rare to judge
InvalidJailEntryInvalidArgumentExceptionA keeper or a die empty, longer than 128 bytes, not UTF-8 or with control characters; a keeper with @; a reason over 500 characters or with control characters
JailRefusedDomainExceptionA die jailed twice, a free die released, a sentence ending now or before, a keeper with 1 000 dice in jail
JailConflictRuntimeExceptionAnother writer appended to the die's history first