2008年12月17日星期三

Re: [fw-mvc] Problem with zendframework RSS feed

Try putting a try/catch where you make the call to get the RSS feed

try {

   // This is where you make the call to get the RSS feed

} catch (Zend_Feed_Exception $e) {

   // Data not available

} catch (Exception $e) {

   // Other exception handled here etc.

}

I hope this helps.

Nikolaos

On Wed, Dec 17, 2008 at 22:24, Sukhada <mahajan.sukhada@gmail.com> wrote:

Hi
I am using 'Zend_Feed_Rss' for RSS feed on my site.
If any errors occur fetching the feed, a 'Zend_Feed_Exception' is thrown.
I want to avoid this 'Zend_Feed_Exception'.
if any error occures in feed, i want to simply return a message that 'Data
not available'.
How to implement this?

Please guide.
--
View this message in context: http://www.nabble.com/Problem-with-zendframework-RSS-feed-tp21066235p21066235.html
Sent from the Zend MVC mailing list archive at Nabble.com.




--
The contents of this message may contain confidential or privileged information and is intended solely for the recipient(s). Use or distribution to and by any other party is not authorized. If you are not the intended recipient, copying, distribution or use of the contents of this information is prohibited.

没有评论: