Re: updated docs for Error_Raise
| From: | Martin Jansen | Date: | Wed, 20 Aug 2003 22:00:26 +0000 |
| Subject: | Re: updated docs for Error_Raise | ||
| References: | 1 2 3 4 5 6 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-20183@lists.php.net to get a copy of this message | ||
On Thu Aug 21, 2003 at 05:1953AM +0800, Alan Knowles wrote:
> >a) PEAR needs to require error codes, referenced by constant name, and
> >not by number (PEAR::raiseError(6) is a disastrous idea)
>
> YES
>
> >
> >b) you can't require error codes to be referenced by constant name
> >without also requiring the originating package of the error code.
>
> YES
>
> >
> >c) adding in the getPackage(), getErrorType() methods to PEAR_Error
> >will enable complex error handling.
>
> YES..
I also agree.
Greg: To get a better idea of that stuff, it would be cool if you
provided some concrete examples for it. (Unless you haven't already done
that somewhere else in the thread.)
--
- Martin Martin Jansen
http://martinjansen.com/