Mar*_*aux 40 java exception-handling exception
有没有办法在Java中创建一个全局异常处理程序.我想这样使用:
"When an exception is thrown somewhere in the WHOLE program, exit."
处理程序可能无法捕获try-catch正文中抛出的异常.
try-catch
马亭
bob*_*mcr 58
使用Thread.setDefaultUncaughtExceptionHandler.有关示例,请参阅Rod Hilton的" 全球异常处理 "博客文章.
归档时间:
16 年,9 月 前
查看次数:
36725 次
最近记录:
11 年,3 月 前