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 <ch...@chrisweldon.net> wrote: > On Sat, Jan 17, 2009 at 5:06 AM, PHPScriptor <cont...@phpscriptor.com> > 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 > ch...@chrisweldon.net > -- Simone Carletti Site & Blog: www.simonecarletti.com Email: wep...@weppos.net LinkedIn: http://linkedin.com/in/weppos