How can I exclude an exception from reports as not displayed in the BlackBerry application?

Edit: this only applies to simulators, but I still would like to know if there is a permission.

I have a code in a Blackberry application that at some point catches some kind of exception, does some processing in the catch block, and then iterates the exception that is caught above in the call stack. However, even if I catch it later, I still see the error message displayed on the simulator, as well as the jvm 104 error in the device logs. Is there anything else I need to do to disconnect this error screen from displaying when I already catch the exception that it complains about?

+2
source share
2 answers

Have you tried the JDE Preferences menu, Simulator tab, subtitle debugging? There is the option "Do not stop execution when an exception is caught by catch (Throwable)." Maybe it will be? (It is assumed that you run the simulator from JDE)

+4
source

Are you really doing a catch (Throwable)? As Mark says, this will be displayed in the error logs on the simulator. RIM doesn't allow you to do this the way you do a performance hit (I will not understand their JVM design), so this could be another reason for this, just by catching things differently (like not Throwable, but a more specific type of exception - if you really don't need this stack trace).

+2
source

Source: https://habr.com/ru/post/1770590/


All Articles