Re: Exception Handling
| From: | James Colannino | Date: | Fri, 01 Jun 2012 15:14:29 +0000 |
| Subject: | Re: Exception Handling | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-318083@lists.php.net to get a copy of this message | ||
On 06/01/12 07:32, Mackintosh, Mike wrote:
Hi James, You would have to catch Database_Exception. It is also good practice to also always catch exception afterwards.Hey Mike, Thanks for the reply! I saw this comment in the documentation (http://www.php.net/manual/en/language.exceptions.extending.php) -- it's the first one: "|It's important to note that subclasses of the Exception class will be caught by the default Exception handler" Of course, I haven't tested the code they posted. I'll do that tonight and confirm or deny the expected result. James |