• 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

Opinion on showing stack trace in GUI

 
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am considering to handle Exceptions in GUI as follows:
show a friendly (hopefully friendly enough) message to the user with a "Show Details" button, when the button is clicked the stack trace is outputted to the user in the dialog below the message.
I have seen this approach in some applications.

another alternative is logging on the client side.

What do you think?
 
Ranch Hand
Posts: 443
3
Eclipse IDE C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think thats nice but unecessary i.e. I just log client side which I really need to debug / test the thing ;-)

As I don't think you'll get any extra credit for the button I'ed drop it, though it is a nice idea but I'm not doing anything unless ether its strictly required or I think its a good learning exercise (I think I probably shouldn't do the learning bit either but I'll risk a few marks to play with some new stuf ;-) )
 
Ranch Hand
Posts: 332
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I had error dialog showing error message,.. and there was also "Details" button, which showed extra info -> stack trace. So user see something he can understand - "a normal message", and if he is curious, he can click details button and see stack trace.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic