参数值在java中抛出dispatchUncaughtException(Throwable)异常 [英] Argument value thrown dispatchUncaughtException(Throwable ) exception in java

查看:1177
本文介绍了参数值在java中抛出dispatchUncaughtException(Throwable)异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究旧版本的java(jre 1.6)。调试代码时,在以下行中的线程类中获得异常。



I'm working on old version of java(jre 1.6). While debugging the code getting an exception in thread class in the following line.

source = args[0];





代码步入线程类。





code step over into the thread class.

private void dispatchUncaughtException(Throwable e) {
    getUncaughtExceptionHandler().uncaughtException(this, e);
}

推荐答案

你能把这段代码发布到源头吗?

调试器向您展示如何调用 Thread 类的 dispatchUncaughtException

但是异常是打印?如果是,那是什么?



更多关于未捕获的异常处理:

http://www.javamex.com/tutorials/exceptions/exceptions_uncaught_handler.shtml [ ^ ]
Can you post the piece of code where it is originating from?
Debugger is showing you how the Thread class's dispatchUncaughtException is called.
But is the exception getting printed? If yes, what is it?

More about uncaught exception handling here:
http://www.javamex.com/tutorials/exceptions/exceptions_uncaught_handler.shtml[^]


这篇关于参数值在java中抛出dispatchUncaughtException(Throwable)异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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