This project has moved. For the latest updates, please go here.

Error Handling in RSSToolkit

Topics: Developer Forum
Aug 9, 2007 at 11:56 AM
the rss tookit worked right away for me - nice work :D

im missing some proper error handling for missing or temporarily unavailible feeds.

are there any plans to check if the feedurl is there (404 handling)?
what about corrupt feeds?
Nov 2, 2007 at 1:52 PM
Maybe we can use the XMLException,
While debugging, it is clear RSSToolkit throws a XMLException but interesting thing, it does not enter into catch block.
Any idea?

protected void rssXXX_Init(object sender, EventArgs e)
catch (XmlException ex)
Nov 2, 2007 at 8:36 PM
i evaded that by doing this in the try block:

Dim oRss As RssToolkit.Rss.RssDocument
oRss = RssToolkit.Rss.RssDocument.Load(New System.Uri(FeedURL))
Catch ex As Exception
------ do notify -------
End Try

i send a notification within the catch block then to get notified when a feed breaks.

anyhow it would be nice to have this feature inside the toolkit - this way its much manual coding - akso try-catch isnt the most elegant way to deal with it

but for the time beeing its quick dirty and workz ;-)