Exception Handler

ZF2 Feed component’s exceptions e.g. RuntimeException, InvalidArgumentException etc. implement ExceptionInterface class. They don’t extend “Exception”. In order to catch all exceptions is it possible to catch ExceptionInterface? Or I should catch Exception only?

they do extend Exception by extending the appropriate SPL exception. otherwise the PHP exception initialisation wouldn’t trigger.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.