Skip to content

Exceptions

tilttek/sets

Every exception of the library implements Tilttek\Sets\Exception\SetsException.

ExceptionRaised whenMessage, for instance
InvalidSetA code, a member, a version, a tier, a reward, holdings or a holder is refused, or a definition does not readThe tier "gold" requires 30 members; the set "dice" has 20.
UnknownSetA set, or a version of it, was never definedThe set "dice" has no version 4.
DefinitionConflictA version defined again with other content, or a version older than the latestThe set "dice" already has a version 1 with other content: a changed set takes a new version.

InvalidSet extends InvalidArgumentException; the others extend RuntimeException.