|
|||
|
I have this code:
PHP Code:
Quote:
|
|
|||
|
Hi Parse,
The problem seems to be that you're checking for a Zend_Feed_Exception, while the code throws a Zend_Http_Client_Adapter_Exception. That means that the latter should be subclassed from the first, or you should check for both. Obviously, there is always the possibility to check for Zend_Exception, since every Exception inherits from that. Regards, Berry. |
|
|||
|
Quote:
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. **/ } |
![]() |
| Thread Tools | |
| Display Modes | |
|
|