W dniu poniedziałek, 29 sierpnia 2016 15:24:56 UTC+2 użytkownik David Négrier napisał: > > Do you mean we should rename it to something more specific, like > EntryNotFoundExceptionInterface? > > Yes, I do.
> I strongly disagree with you here. Each framework has its own hierarchy of > exceptions. Requiring an existing framework to throw an exception provided > by this PSR would likely cause breaking changes in the framework. > Have a look at Symfony for instance. The container has already a "has" and > a "get" method. Implementing PSR-11 would be a breeze (if they want to). If > however we require them to use a ContainerException "class" (instead of an > interface), that adoption could not be done before Symfony 4 (because > Symfony currently has its own NotFoundException and it cannot change it > without breaking the API). > No, if you provide for the consumers additional functionality with re-throwing non-standard exception as standard exception. Next major is enough and is must be in every case. -- 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/3cdcbafa-9d42-423a-a46e-82a0f55e8337%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
