Suggestion for error formatting
Have you guys considered calling Exception.ToString() and using that to fill in the error dialog box? That would make errors like this a little easier to read for the novice user. For instance, when my network was down, I got this message, which didn't include the type of the exception, and the exception message was tacked on to the end of the stack trace.
Error Getting File List: System
at System.Net.HttpWebRequest.CheckFinalStatus()
[..snip..]
at System.Data.DataSet.ReadXml(String fileName)
at WindowsApplication7.Form1.DownloadExtras()The underlying connection was closed: The remote name could not be resolved.
How about something like this instead? (Note that Exception.ToString() handles nested exceptions too!)
Error Getting File List
System.IO.IOException: The underlying connection was closed: The remote name could not be resolved.
at System.Net.HttpWebRequest.CheckFinalStatus()
[..snip..]
at System.Data.DataSet.ReadXml(String fileName)
at WindowsApplication7.Form1.DownloadExtras()
|