• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Should client GUI render if exception occurs during startup ?

 
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks sai - your joptionpane idea sounds just what i'm looking for. cheers - dean
reply
    Bookmark Topic Watch Topic
  • New Topic