• 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.
 
No matter how many women are assigned to the project, a pregnancy takes nine months. Much longer than this tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!