• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Should client GUI render if exception occurs during startup ?

 
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 !
 
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!
 
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
 
Anything worth doing well is worth doing poorly first. Just look at this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!