Exception Handling (Try / Catch , ...)

From: Date: Wed, 03 Jan 2001 13:19:25 +0000
Subject: Exception Handling (Try / Catch , ...)
Groups: php.general 
Request: Send a blank email to php-general+get-32484@lists.php.net to get a copy of this message
Hi, I have been following the discussion about Try/Catch and Exception handling in PHP. I need to do something similar and was wondering if anybody has some code in this direction, in order to treat neatly all kinds of things, from user triggered errors to SQL specific return codes or error messages, and with facilities of sending e-mails or logging information according to the error severity. Something in the direction of what Java does I think would be close to what PHP developers are intending to implement (structures with Try / Catch / Finally). Does anybody has anything in this direction a little more complete than the examples found at the PHP site that could help me? When should I don't use the '@' operator and treat the exception with my Error Handling routine? How would I be able to know that I would be treating all exceptions? TIA, Paulo pparola@gst.com.br

« previous php.general (#32484) next »