note 88585 added to exception.construct
| From: | mario dot mueller at twt dot de | Date: | Fri, 30 Jan 2009 10:21:47 +0000 |
| Subject: | note 88585 added to exception.construct | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-149970@lists.php.net to get a copy of this message | ||
The previous Exception param would be nice for handling ZendFramework Exceptions to your own
framwork or CMS Exceptions:
<?php
try
{
$oZFResponse = $oZFHttpClient->request();
}
catch(Zend_Http_Exception $exZFHttpEx)
{
throw new Runtime_{$oZFHttpEx->getCode()}_Exception('some ErrorMailing Message',
500, $oZFHttpEx);
}
?>
Regards,
Mario
----
Server IP: 69.147.83.197
Probable Submitter: 213.23.28.30
----
Manual Page -- http://www.php.net/manual/en/exception.construct.php
Edit -- https://master.php.net/note/edit/88585
Del: integrated -- https://master.php.net/note/delete/88585/integrated
Del: useless -- https://master.php.net/note/delete/88585/useless
Del: bad code -- https://master.php.net/note/delete/88585/bad+code
Del: spam -- https://master.php.net/note/delete/88585/spam
Del: non-english -- https://master.php.net/note/delete/88585/non-english
Del: in docs -- https://master.php.net/note/delete/88585/in+docs
Del: other reasons-- https://master.php.net/note/delete/88585
Reject -- https://master.php.net/note/reject/88585
Search -- https://master.php.net/manage/user-notes.php