Error supressing in PHP5 [was PEAR_Interop... [was PEAR_Warning...]]
| From: | Jon Wood | Date: | Tue, 13 Jul 2004 21:51:36 +0000 |
| Subject: | Error supressing in PHP5 [was PEAR_Interop... [was PEAR_Warning...]] | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-31992@lists.php.net to get a copy of this message | ||
I've never used set_exception_handler, but could a custom handler be
developed (possibly along with PEAR_Exception) which would allow a
list of exceptions to expect and ignore be developed, with anything
that isn't expected being displayed?
This would also work for non-PEAR packages, since it would simple be
given the list of classes to expect, and would allow trees of
exceptions to be ignored by defining their parent class
(PEAR_Exception...) as one to ignore.
Jon