Purpose of the interfaces is to make those exact exception types
*catchable*... that's all.

On Feb 24, 2018 13:56, "Alice Wonder" <alicedomblog...@gmail.com> wrote:

> I have a personal cache class that would be cake to port to use PSR-16,
> but PSR-16 also defines two exception interfaces.
>
> Is it really necessary I extend those two interfaces rather than extend a
> different exception interface?
>
> zetacomponents base package has an abstract exceptions class I sometimes
> extend.
>
> If I have to implement the interface in PSR-16 to be compliant than to use
> that abstract class I would have to change that abstract class to implement
> the PSR-16 exception interfaces instead of just \Exception and it strikes
> me that that is just, well, absurd since the PSR-16 interfaces don't do
> anything or even extend \Exception.
>
> Am I not understanding the purpose of those interfaces?
>
> --
> 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 php-fig+unsubscr...@googlegroups.com.
> To post to this group, send email to php-fig@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/php-fig/85594732-4a0a-4058-a263-a48db4738e70%40googlegroups.com
> <https://groups.google.com/d/msgid/php-fig/85594732-4a0a-4058-a263-a48db4738e70%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 php-fig+unsubscr...@googlegroups.com.
To post to this group, send email to php-fig@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/php-fig/CANsgjns%3DWYjjQ43OC0RMkgLSRBUAmrjKGcaPbhU8cyVsgf3HpA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to