View Single Post
  #1 (permalink)  
Old 10-08-2007, 06:46 AM
parse parse is offline
Junior Member
 
Join Date: Aug 2007
Posts: 7
Default Zend_Feed - Throw exception instead of error?

I have this code:
PHP Code:
 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);
        } 
Instead of going in the catch { } when it fails to load the RSS it goes:
Quote:
Fatal error: Uncaught exception 'Zend_Http_Client_Adapter_Exception' with message 'Unable to Connect to tcp://www.xc-ski.de:80. Error #60: Operation timed out'
Reply With Quote