• Post Reply Bookmark Topic Watch Topic
  • New Topic

Should client GUI render if exception occurs during startup ?

 
dean tomlinson
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
dear guys,
what's the general convention for handling exceptions that occur during aplication startup.
is it ok to just report this to the console, or is it preferred to render the GUI, and pop up a dialog explaining there is something wrong ?
is there any marks in this for our assignment. starting to worry - booked my exam for wednesday morning, and seem to be uncovering more and more each day !
 
Steven Sloggett
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by dean tomlinson:
dear guys,
what's the general convention for handling exceptions that occur during aplication startup.
is it ok to just report this to the console, or is it preferred to render the GUI, and pop up a dialog explaining there is something wrong ?
is there any marks in this for our assignment. starting to worry - booked my exam for wednesday morning, and seem to be uncovering more and more each day !

I think there's nothing wrong with sending the exception to the console, especially if there is no GUI to display your message on!
 
Sai Prasad
Ranch Hand
Posts: 560
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use a JOptionPane to display any startup exception with a "null" for the JFrame instance.
 
dean tomlinson
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks sai - your joptionpane idea sounds just what i'm looking for. cheers - dean
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!