Quote:
Originally Posted by berry__
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. **/
}