> This way I can catch all container exceptions using
> ContainerException, or the individual exception I am interested in. In
> your example, it would not be possible to catch only exceptions raised
> by the container, as other Exceptions could be raised (if for example
> pulling service config from database or memory, or using an HTTP
> request, these services may raise uncaught exceptions).


Again, can we get an actual use case where one would need to catch
MisconfiguredException (or whatever the name) separately from
\Exception? We still have had no answer to that.


> Personally, I would handle missing services differently to a general
> container error and would be keen to see the spec reflect this


NotFoundException is already a thing in the spec, do you have something
else in mind?

-- 
You received this message because you are subscribed to the Google Groups "PHP 
Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/php-fig/1479920713.146140.797206121.5D4CB9FE%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to