Re: exceptions instead of errors

From: Date: Tue, 13 May 2003 18:27:53 +0000
Subject: Re: exceptions instead of errors
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-1483@lists.php.net to get a copy of this message
At 11:05 13.05.2003, Alan Knowles wrote:
A very difficult problem with very little in the way of clean solutions.. my only thought was: mysql::connect() would thrown an exception mysql_connect() would emit an error.. basically all 'object methods - static or dynamic' would be expected to throw errors, where as functions would just emit errors. so you could implement object wrappers for key 'exception em It's far from a complete solution. (downside is the extra documentaiton overhead of this..)
Besides the fact that i like try == exception more this would be easy to implement, too. A little bit problematic might be static namespace functions. regards marcus

« previous php.internals (#1483) next »