Skip to content

Exceptions

phil/checkin

Every exception of the library implements Phil\Checkin\Exception\CheckinException. None of their messages names a code.

ExceptionExtendsThrown when
InvalidCheckinInvalidArgumentExceptionAn identifier, a code, a credential, an attendance, a check-in, a policy or a bound is given a value it cannot work with.
InvalidOfflineBatchInvalidArgumentExceptionA journal sent by a device is not a list, holds too many scans, or one of them is malformed; the message gives its position.
LedgerContentionRuntimeExceptionEvery attempt to record a scan met another scan of the credential recorded first; the scan can be sent again.
ManifestTooLargeRuntimeExceptionThe catalog holds more credentials for a checkpoint than a manifest may carry.
WeakManifestCodesRuntimeExceptionThe catalog holds a code for a checkpoint under the strength a manifest asks, 64 bits by default.

An application answers InvalidCheckin and InvalidOfflineBatch from a device with a client error, and LedgerContention with a server error the device retries.