如何从一个黑莓应用程序的报告作为未捕获保持捕获的异常? [英] How do i keep a caught exception from reporting as uncaught in a blackberry app?

查看:125
本文介绍了如何从一个黑莓应用程序的报告作为未捕获保持捕获的异常?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

编辑:这仅适用于模拟器,但我仍想知道是否有一个分辨率

this applies to simulators only, but i would still like to know if there is a resolution.

我有,在某些时候捕捉异常的黑莓应用程序的一些code,做一些在catch块处理,然后重新抛出异常,这是赶上了更高调用堆栈上。但是即使我赶上它后,我仍然可以看到在模拟器上显示错误信息,并在设备日志的JVM 104错误一起。有没有别的东西,我需要做的坐席preSS这个错误屏幕无法显示的时候,我已经抓住它的抱怨例外呢?

I have some code in a blackberry application that catches an exception at some point, does some handling in the catch block then rethrows the exception, which is caught higher up on the call stack. However even though i do catch it later on, i still see an error message displayed on the simulator, along with a jvm 104 error in the device logs. Is there something else i need to do to suppress this error screen from displaying when i already catch the exception it's complaining about?

推荐答案

你试过了JDE preferences菜单,仿真选项卡,调试子选项卡?那里面有标有当一个异常被捕获(的Throwable)陷入不停止执行的选项。也许这将做到这一点? (这里假设你从JDE启动模拟器)

Have you tried the JDE Preferences menu, Simulator tab, Debugging subtab? There's an option in there labeled "Do not stop execution when an exception is caught by catch(Throwable)". Maybe that would do it? (This assumes that you launch the simulator from the JDE)

这篇关于如何从一个黑莓应用程序的报告作为未捕获保持捕获的异常?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆