If all exception objects must be instances of classes derived from exception or that class itself..well..why then specify exception.
That's why proposed the following a *long* time ago:
* Introduce
interface Throwable {}
as built-in interface.
* Allow only classes implementing the Throwable interface to be
throw()n. * Provide the current Exception class (implementing avove interface)
as a standard exception class.-- Sebastian Bergmann http://sebastian-bergmann.de/ http://phpOpenTracker.de/
Das Buch zu PHP 5: http://professionelle-softwareentwicklung-mit-php5.de/
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
