0

My app crashes due to a runtime exception - I know what is causing it, so I can catch the exception. However, I don't really mind if the app closes (the reason behind the crash is pretty cut and dry)... I just want to be able to tell the user why it crashed.

Is it possible to change that error message?

b85411
  • 9,420
  • 15
  • 65
  • 119

2 Answers2

2

You should catch the exception and show your own dialog box.

Code-Apprentice
  • 81,660
  • 23
  • 145
  • 268
0

You can show some excpetions, but if it's a RuntimeException the app will crash inevitably. You need to do a little tweak to handle exceptions differently. Check this answer.

Community
  • 1
  • 1
Chisko
  • 3,092
  • 6
  • 27
  • 45