EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Featured Projects > EQ2MAP > EQ2Map Troubleshooting

Reply
Thread Tools Search this Thread Display Modes
  #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
  #2  
Unread 10-29-2005, 04:42 PM
taco-man's Avatar
taco-man taco-man is offline
EQ2MAP Updater Author
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Nov 2004
Server: Antonia Bayle
Posts: 1,349
Default

thanks, thats alot better. Ive never had any real programming classes before(although now that i just started college this year im taking one ) 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.
__________________
EQ2MAP Updater Download
EQ2MAP Website
How to Install a custom interface
Reply With Quote
Reply



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 12:04 PM.


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