Marcos,

http://ralphschindler.com/2010/09/15/exception-best-practices-in-php-5-3

Is probably where they’re coming from.

Cheers!
-- 
Xander Guzman
[email protected]
www.xanderguzman.com

On August 21, 2014 at 8:38:31 AM, Marcos Lois Bermúdez 
([email protected]) wrote:

Hi,  

I'm a newbie in ZF2, I spent last two weeks, surfing the code, and lots of  
zf2 application modules to see the best practices, make some tests apps to  
fit all together.  

I see that lots of modules declare empty Exception classes extending the  
PHP built-in ones, RuntimeException, InvalidArgumentException, etc. and  
creating a ExceptionInterface per module, is this a good practice? Why no  
reuse the already PHP built-in Exceptions?  

Sorry if it's a stupid question, I only want know why lot of people in  
different projects use this approach.  

Regards.  

Reply via email to