Exceptions
tilttek/spotlightEvery exception of the library implements Exception\SpotlightException: catch it to catch them all.
| Exception | Extends | When |
|---|---|---|
Exception\InvalidSpotlight | InvalidArgumentException | A 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\SpotlightRefused | DomainException | A 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\SpotlightNotFound | RuntimeException | No table has the identifier, or the table has no such player. |
Exception\SpotlightConflict | RuntimeException | The table changed since it was read: the change is not kept, and is made again on what is read anew. |