PHP5 Exception Handling

From: Date: Fri, 04 Feb 2005 17:04:53 +0000
Subject: PHP5 Exception Handling
Groups: php.general 
Request: Send a blank email to php-general+get-208093@lists.php.net to get a copy of this message
Just bouncing a thought on you. I currently have a default exception handler setup. So far in the code, I throw an exception when something is wrong. i.e. Missing file, invalid argument, failed db connection etc... My thought was centering around if I still needed to use try/catch in the code, since I have a default exception handler. Normally, I would rethrow exceptions for it to bubble back up to the top, where its caught, and something useful done with the stack. So I removed all try/catch blocks, and its seems to be working as it should be. Just wondering if there may be an "gotchas" with this chain of thought. Or should I keep the try/catch blocks as it is??? Thanks

« previous php.general (#208093) next »