View Single Post
  #3 (permalink)  
Old 10-08-2007, 09:15 AM
berry__ berry__ is offline
Junior Member
 
Join Date: Oct 2007
Posts: 2
Default

Quote:
Originally Posted by berry__ View Post
Obviously, there is always the possibility to check for Zend_Exception, since every Exception inherits from that.
To illustrate:

try {
$channel = Zend_Feed::import($r['parentURL']);
} catch (Zend_Feed_Exception $e) {
$insertArray = array('statusParentID' => $r['parentID'], 'statusDate' => time(),'statusError' => $e->getMessage());
$db->insert('feed_status', $insertArray);
} catch( Zend_Exception ) {
/** Exception is catched here, if the exception wasn't Zend_Feed_Exception or child. **/
}
Reply With Quote