note 88585 deleted from exception.construct by sobak
| From: | sobak@php.net | Date: | Thu, 01 Dec 2016 17:25:46 +0000 |
| Subject: | note 88585 deleted from exception.construct by sobak | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-207885@lists.php.net to get a copy of this message | ||
Note Submitter: mario dot mueller at twt dot de
----
This 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