Edit report at http://pear.php.net/bugs/bug.php?id=18574&edit=1
ID: 18574
Updated by: [email protected]
Reported By: daniel dot oconnor at gmail dot com
Summary: Avoid try-catch-rethrow
Status: Open
Type: Feature/Change Request
Package: HTTP_OAuth
Package Version: 0.2.2
PHP Version: 5.2.12
Roadmap Versions:
New Comment:
Agreed. I think I'd like to just use PHP 5.3's exception chaining. I
wonder if making
5.3 a requirement will adversely affect many folks.
Previous Comments:
------------------------------------------------------------------------
[2011-05-31 11:07:19] doconnor
Description:
------------
Doing:
try {
$response = $this->getHTTPRequest2()->send();
} catch (Exception $e) {
throw new HTTP_OAuth_Exception($e->getMessage(),
$e->getCode());
}
.... removes 95% of the exception backtrace - avoid it; or look
at exception chaining mechanisms.
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=18574&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not
affiliated with the servers or forums shown here and is not responsible for
the content of articles, which is written by their respective authors.