[PEPr] Comment on File Formats::Archive_Ar
| From: | Lukas Smith | Date: | Sun, 01 May 2005 21:16:44 +0000 |
| Subject: | [PEPr] Comment on File Formats::Archive_Ar | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-37470@lists.php.net to get a copy of this message | ||
Lukas Smith (http://pear.php.net/user/lsmith) has commented on the proposal for File
Formats::Archive_Ar.
Comment:
However there is no value in extending from PEAR unless you use error
codes. The main advantage of extending from PEAR is 1) destructor
emulation (which is not used here) and 2) expectError(). However
expectError() only works with error codes.
For error codes you would best define a set of constants that you pass to
raiseError().
However if you define error codes you should probably also define your own
error class so that people can figure out from an error object what error
code map to use.
Proposal information:
http://pear.php.net/pepr/pepr-proposal-show.php?id=243
--
Sent by PEPr, the automatic proposal system at http://pear.php.net