Re: best practices in error handling in PHP

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

 



It Maq wrote:

I want to know what is the best solution for handling errors. After
reading some documents dealing with the subject, i have three
options:
>  * Using a class for error handling

No point IMO when you could use either the below two.

>  * Using PEAR error object

I wouldn't advise it.

 * Using try and catch exceptions

In a new app, or (particularly) if you're adapting existing code, this is the one I'd recommend.

The error handling i want to implement will be done in a big
application that was developed from the beginning without any concern
about error handling.

Aren't they all? :-/

--
Richard Heyes
Employ me:
http://www.phpguru.org/cv

--
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