• Post Reply Bookmark Topic Watch Topic
  • New Topic

custom message instead of technical exception message  RSS feed

 
Kaustubh G Sharma
Ranch Hand
Posts: 1283
Chrome Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to manage exception like null pointer exception and in place of showing technical exception message, I need to Catch and manage these types of issues without displaying a system error/crash screen.  Display an appropriate warning or error message to the user to adivse them that previously specified filter selections are invalid, and that it must be modified to fix this issue. What would be the best way to it. I used play framework to develop this app and handling expetion in reporting from dynamic jasper.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What prevents from catching the exception and displaying something user-friendly instead?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!