Skip to content

Exceptions

tilttek/table-presence

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

ExceptionExtendsWhen
Exception\InvalidPresenceInvalidArgumentExceptionA 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\PresenceRefusedDomainExceptionA 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\PresenceNotFoundRuntimeExceptionNo table has the identifier, or the table has no such member — a viewer who is not a member included.
Exception\PresenceConflictRuntimeExceptionThe 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.