Re: MySQL class. Thoughts?

From: Date: Wed, 21 Jan 2009 22:55:39 +0000
Subject: Re: MySQL class. Thoughts?
Groups: php.general 
Request: Send a blank email to php-general+get-286964@lists.php.net to get a copy of this message
I prefer to deal with the issues locally, or have a documented behaviour with return values and error details available, much like most of PHP extensions/internals. try/catch ends up with weird code organization, imho, especially when you can only really handle some exceptions. For real fun, one API layer will catch all the lower exceptions, then wrap them in a generic exception, and you have to string parse $e->getMessage() to figure out what to *do*. [shudder]

« previous php.general (#286964) next »