Re: Default exception handler

From: Date: Sun, 07 Sep 2003 10:27:09 +0000
Subject: Re: Default exception handler
References: 1 2 3 4 5 6 7  Groups: php.internals 
Request: Send a blank email to internals+get-4422@lists.php.net to get a copy of this message
Zeev Suraski wrote: > I don't see any advantage to that at all. The advantage would be to allow for completely different Exception implementations while still beeing able to write a generic catch() handler like catch (Throwable $e) {} (Which does not mean that I think this really useful (for PHP, anyway) - I only wanted to show a possible solution to a problem stated in the thread) > I don't see the problem having people write catch (Exception > $foo) instead of catch ($foo). Exactly what I was thinking. -- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/ Das Buch zu PHP 5: http://professionelle-softwareentwicklung-mit-php5.de/

« previous php.internals (#4422) next »