EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Featured Projects > EQ2MAP > EQ2Map Troubleshooting

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Unread 10-29-2005, 04:23 PM
Elrinia Elrinia is offline
A Coastal Crab
 
Join Date: May 2005
Server: Unrest
Posts: 1
Default 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()
Reply With Quote
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 10:01 AM.


Our Network
EQInterface | EQ2Interface | WoWInterface | LoTROInterface | ESOUI | MMOUI