Re: PEAR_Exception vs SPL exceptions

From: Date: Mon, 24 Mar 2008 11:53:08 +0000
Subject: Re: PEAR_Exception vs SPL exceptions
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-49521@lists.php.net to get a copy of this message
Hello Michael, > Currently, it is unclear whether or not exceptions used by PEAR > packages must extend PEAR_Exception. PEAR_Exception provides useful > features like generating of pretty stack traces, registration of > exception handlers and wrapping of PEAR_Error. On the other hand, > having a single point of inheritance prevents extending generic SPL > exception classes in PEAR packages. > > Of the existing feature in PEAR_Exception I think wrapping PEAR_Error > is the most important. Handling exceptions and displaying stack traces > could be performed by a separate class that would work with any type > of exception (PEAR_Exception_Handler). I do think that wrapping native PHP exceptions should be allowed. -- Regards/Mit freundlichen Grüßen Christian Weiske

Attachment: [application/pgp-signature] signature.asc
« previous php.pear.dev (#49521) next »