You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit de32800
Browse filesBrowse the repository at this point in the historyBrowse files
Route the remaining ResultSet and Container throw sites through named constructors
The last 5 throw sites outside the components covered by #191 to #194. Message
text is byte-identical, verified template by template against the originals.
- Add ResultSet\Exception\RuntimeException::forUnbufferedIteration()
- Add forNonAdapterAwareDelegate() to Exception\ContainerException, and give
the three reasons that AdapterInterfaceFactory and
AbstractAdapterInterfaceFactory passed as inline strings their own factories:
forMissingConfigService(), forMissingConfiguration() and forMissingDriver(),
each composing the reason into the SERVICE template
- Retype the delegator's non-AdapterAware guard from the root
Exception\RuntimeException to ContainerException, which extends it, so the
failure carries PSR-11's ContainerExceptionInterface as a container failure
should
- Own the "not found in container" wording as ContainerException::MISSING_SERVICE
while still throwing the ServiceManager's own ServiceNotFoundException. Laminas
annotates that class @Final, so this package cannot own it; the throw site
renders the template itself, which docs/book/exceptions.md now records as the
single documented exception to the convention
- Derive the message assertions in the six test files the earlier PRs do not
touch from the templates rather than restating them
One literal assertion is deliberately left in
test/unit/Container/TableIdentifierFactoryFactoryTest.php: it asserts
Sql\Exception\InvalidArgumentException::EMPTY_SEPARATOR, a constant #192
introduces, so it can only be migrated once that has landed.
Signed-off-by: Simon Mundy <simon.mundy@peptolab.com>
0 commit comments