Re: usage of PEAR_Exception
| From: | Lukas Kahwe Smith | Date: | Wed, 02 May 2007 13:25:36 +0000 |
| Subject: | Re: usage of PEAR_Exception | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-46547@lists.php.net to get a copy of this message | ||
till wrote:
Hi, what is the general agreement on PEAR_Exception (I don't mean general usage)? Should you extend PEAR_Exception class and create Package_Name_Exception, or is this up to one's personal preference?Yes you are supposed to extend from PEAR_Exeception. IIRC the RFC even mandated that every package throw its own exception that extends from PEAR_Exception so that users can differentiate from what layer the exception originated from. Look at the exception RFC in PEPr. regards, Lukas