Re: MySQL class. Thoughts?

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

 



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]


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