Re: PEAR_Error Integration...

From: Date: Sat, 31 May 2003 14:47:02 +0000
Subject: Re: PEAR_Error Integration...
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-16853@lists.php.net to get a copy of this message
> What are the intended benefits of using raiseError() or throwError() as > opposed to instantiating PEAR_Errors directly? when instantiating PEAR_Error class directly u have to put each time error mode (PEAR_ERROR_RETURN, PEAR_ERROR_DIE etc .) when u use raiseError() or simple version of it throwError() - they can use default error mode that was set with: PEAR::setErrorHandling() so when using PEAR_Error directly u say what error mode to use when using raiseError() - user can change error handling without touching ur code but im not sure in 100% :] -- cagrET

« previous php.pear.dev (#16853) next »