Skip to content

Exceptions

phil/edit-lock-bundle

Every exception of the bundle implements Phil\EditLockBundle\Domain\Exception\EditLockException.

ExceptionThrown byWhen
Domain\Exception\InvalidLeaseLeaseKey::of(), Holder::of(), Lease, EditLocks, DoctrineLeaseRepositoryA resource, a part, a holder or a duration a lease cannot be made of; a stored row that is no lease
Application\Exception\LeaseHeldacquire(), takeOver()Another holder holds the key or what overlaps it; $lease is theirs, null after requests kept racing
Application\Exception\LeaseLostheartbeat(), BlockSavesThe holder no longer holds the key, or does not hold the block saved
Application\Exception\EditRefusedacquire(), takeOver(), heartbeat(), BlockSaves, the presence endpointThe policy refuses to let the holder edit the resource, or take a lease over
Application\Exception\InvalidBlockBlockSaves::save()phil/ujo refuses the block, or the list or the block before is not one; getPrevious() holds the phil/ujo exception

The endpoints answer them with a status: endpoints. A hub that cannot be reached throws nothing: Mercure.