Question
Error handling with CFFEED?
Hello, does anyone have a suggestion on handling errors from
CFFEED reads?
I'm reading an ATOM RSS feed from another site, but if there is ever an issue with that remote site, it would prevent my page from loading.
If, for example, the RSS feed wasn't available, I would get an "Unable to read the source URL" error page.
What I would like to have happen would be the page to continue processing, and instead of displaying the <CFOUTPUT query = "myQuery">, instead display something like "There was a problem with the newsfeed".
Is there any way to ignore a "fatal error" from a CF tag, and just move on with processing the rest of the page?
The code I've used here is Adobe's example for the CFFEED tag. The RSS URL I'm testing with is:
http://feeds.emsresponder.com/emsresponderrss/top_ems_news
Thanks in advance!
-Ian in Los Angeles
I'm reading an ATOM RSS feed from another site, but if there is ever an issue with that remote site, it would prevent my page from loading.
If, for example, the RSS feed wasn't available, I would get an "Unable to read the source URL" error page.
What I would like to have happen would be the page to continue processing, and instead of displaying the <CFOUTPUT query = "myQuery">, instead display something like "There was a problem with the newsfeed".
Is there any way to ignore a "fatal error" from a CF tag, and just move on with processing the rest of the page?
The code I've used here is Adobe's example for the CFFEED tag. The RSS URL I'm testing with is:
http://feeds.emsresponder.com/emsresponderrss/top_ems_news
Thanks in advance!
-Ian in Los Angeles
