Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error Reporting

 
Keith Jones
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Greatings,

What do you all think about error logging in the system. For example how do you think we should handle errors such as them entering an invalid ip address or port number or the database file being corrupt etc. Do we do a System.out.println or show a dialog box or something else?
 
Mike Ngo
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
invalid ip address or port number or the database file being corrupt


If the error is something the user must be informed then use dialog. So for these types of error, you have to use dialog.

Use System.out or java.util.logging if you want to debug your code or want to log the error.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic