Re: Exception

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



mr php wrote:

> Hello
> Is it good to use exception handling for error handling or I should use
> only for exceptions?
> For example:
> Is it good to throwing user input errors with throw new Exception().
> Thanks

Hello,

I would also go by keeping them separate; it helps both in logic-flow, and
maintenence. Not to mention, exception handlers are design to do just that
- handle exceptions.


Regards,
Christian

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux