Skip to content

Exceptions

tilttek/spotlight

Every exception of the library implements Exception\SpotlightException: catch it to catch them all.

ExceptionExtendsWhen
Exception\InvalidSpotlightInvalidArgumentExceptionA value out of its shape or its bounds: an identifier, too few or too many players, a player twice, a holder or a waiting player not at the table, a count below zero, a fairness policy out of its bounds.
Exception\SpotlightRefusedDomainExceptionA change not allowed on the table in its state: the table is closed, a player joins twice, the last player leaves, an identifier is taken.
Exception\SpotlightNotFoundRuntimeExceptionNo table has the identifier, or the table has no such player.
Exception\SpotlightConflictRuntimeExceptionThe table changed since it was read: the change is not kept, and is made again on what is read anew.