Re: Default exception handler
| From: | George Schlossnagle | Date: | Fri, 05 Sep 2003 15:42:29 +0000 |
| Subject: | Re: Default exception handler | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-4396@lists.php.net to get a copy of this message | ||
On Friday, September 5, 2003, at 11:30 AM, Sebastian Bergmann wrote:
Marcus Börger wrote:Forcing all thrown objects to be subclassed from Exception does not feel very PHP-ish.try { // code } catch (class1 $var) { } catch (class2 $var) { } catch ($var) { }I thought that only objects of the Exception class and subclasses thereof can be throw().