Thank you both. I took the Zend_Exception... just to make sure that I catch all the exceptions :-))
Simone Carletti wrote: > > Or you can even decide to catch a Zend_Exception to be sure to rescue any > Zend-related exception raised by Zend_Feed, including Zend_Http and > Zend_Feed errors. > > -- Simone > > > On Sat, Jan 17, 2009 at 2:39 PM, Chris Weldon <[email protected]> > wrote: > >> On Sat, Jan 17, 2009 at 5:06 AM, PHPScriptor <[email protected]> >> wrote: >> > "Fatal error: Uncaught exception 'Zend_Http_Client_Exception' with >> message >> >> Try catching Zend_Http_Client_Exception in addition to >> Zend_Feed_Exception like you have below. >> >> > >> > try { >> > $slashdotRss = >> Zend_Feed::import('http://www.test.eu/rss.php'<http://www.test.eu/rss.php%27> >> ); >> > foreach ($slashdotRss as $item) { >> > $channel1[] = array( >> > 'title' => $item->title(), >> > 'link' => $item->link(), >> > 'description' => $item->description()); >> > } >> > $this->view->nieuwskan = $channel1; >> > } >> > catch (Zend_Feed_Exception $e) { >> > } >> >> try { >> // try it >> } catch (Zend_Http_Client_Exception $e) { >> // handle it >> } catch (Zend_Feed_Exception $e) { >> // handle it >> } >> >> -- >> Christopher Weldon >> http://chrisweldon.net >> [email protected] >> > > > > -- > Simone Carletti > > Site & Blog: www.simonecarletti.com > Email: [email protected] > LinkedIn: http://linkedin.com/in/weppos > > ----- visit my website at http://www.phpscriptor.com/ http://www.phpscriptor.com/ -- View this message in context: http://www.nabble.com/Zend_Feed%3A%3Aimport--link-down-tp21515256p21517126.html Sent from the Zend Framework mailing list archive at Nabble.com.
