note 88585 modified in exception.construct by danbrown

From: Date: Fri, 30 Jan 2009 14:58:55 +0000
Subject: note 88585 modified in exception.construct by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-149978@lists.php.net to get a copy of this message
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 --was-- 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 http://php.net/manual/en/exception.construct.php

« previous php.notes (#149978) next »