mirror of
https://github.com/doctrine/KeyValueStore.git
synced 2026-03-24 08:42:12 +01:00
NotFoundException should have a exception message #27
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @enumag on GitHub (Jan 4, 2016).
Many storages (if not all) throw the NotFoundException without any message. It would be better to have a exception message (containing the requested class and key).
Maybe it is not necessary for every storage to throw this exception - when the storage returns an empty value
UnitOfWork::reconstititute()will throw the exception anyway and it would be nicer to have it at one place. This change would be a BC Break though.