Exceptions
tilttek/table-presenceEvery exception of the library implements Exception\PresenceException: catch it to catch them all.
| Exception | Extends | When |
|---|---|---|
Exception\InvalidPresence | InvalidArgumentException | A value out of its shape or its bounds: an identifier, too few or too many members, a member or a connection twice, too many connections, a return expected without a break, break minutes out of their bounds, a label, a negative version, a policy out of its bounds. |
Exception\PresenceRefused | DomainException | A change not allowed on the table in its state: the table is closed, a member is admitted twice, the last member is removed, an identifier is taken. |
Exception\PresenceNotFound | RuntimeException | No table has the identifier, or the table has no such member — a viewer who is not a member included. |
Exception\PresenceConflict | RuntimeException | The table changed since it was read: the change is not kept, and is made again on what is read anew; a heartbeat simply waits for the next beat. |