本文介绍了打印堆栈跟踪的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从我们的文章中获取了异常代码。

我刚刚修改了代码并尝试运行它。

但它骂我......如下:


MyException.java:44:'''''这里不允许这种类型

System.err.println(" test:" + e.printStackTrace());

^

1错误




请阅读程序......

I get the code from our articles for exception.
I just modified the code and tried to run it.
But it scold me..as follows.

MyException.java:44: ''void'' type not allowed here
System.err.println("test : "+e.printStackTrace());
^
1 error



Kindly read the program...

展开 | 选择 | Wrap | 行号

推荐答案

展开 | 选择 | Wrap | 行号




这篇关于打印堆栈跟踪的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-24 08:50