On Friday, September 5, 2003, at 11:30 AM, Sebastian Bergmann wrote:


Marcus Börger wrote:
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().


Forcing all thrown objects to be subclassed from Exception does not feel very PHP-ish.


--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to