EQ2Interface

EQ2Interface (https://www.eq2interface.com/forums/index.php)
-   EQ2Map Troubleshooting (https://www.eq2interface.com/forums/forumdisplay.php?f=36)
-   -   Suggestion for error formatting (https://www.eq2interface.com/forums/showthread.php?t=4627)

Elrinia 10-29-2005 04:23 PM

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()

taco-man 10-29-2005 04:42 PM

thanks, thats alot better. Ive never had any real programming classes before(although now that i just started college this year im taking one :D ) so i kinda just picked things up as i went while i was making the updater and this was the first "real" program that i made.

thanks for the suggestion and i will put it in the next version of the updater which will probably come out at the same time the new eq2map site goes up.


All times are GMT -5. The time now is 11:42 AM.

vBulletin® - Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
© MMOUI