Re: Exception misinformation
| From: | Lukas Smith | Date: | Wed, 07 Jul 2004 08:38:36 +0000 |
| Subject: | Re: Exception misinformation | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-31697@lists.php.net to get a copy of this message | ||
David Costa wrote:
Whilst I do appreciate the concern of few developers, I also think that there is not enough clarity on this topic. This is already part of PHP 5, like it or not e.g. Sqlite has an in-build OO interface (not document yet ...:D) e.g. new SQLiteDatabase equals to the procedural function sqlite_open $obj->queryExec(...) is like the procedural function sqlite_exec etc. Well if you do something like $db = new SqliteDatabase ('blah.sqlite'); and the db doesn't exist ...and you don't try and catch you will end up with an uncaught exception that will raise a fatal error.Interesting you should mention that. For those who read my previous mails they should know that I very much agree that this should throw an exception. However since you are using sqlite as an example. Last time I checked it followed exactly my line of thought. Does it throw an execption if you hav ea malformed query? regards, Lukas Smith smith@backendmedia.com _______________________________ BackendMedia www.backendmedia.com berlin@backendmedia.com Linn Zwoch Smith GbR Pariser Str. 44 D-10707 Berlin Tel +49 30 83 22 50 00 Fax +49 30 83 22 50 07