作者H45 (!H45)
看板java
标题Re: [问题] PrintStackTrace
时间Tue Jul 17 18:48:31 2007
※ 引述《butme (交个朋友吧~)》之铭言:
: 想请问各位板友
: 如何将 PrintStackTrace 在console中列印出的错误讯息储存下来
: (我想将这些错误讯息 丢入资料库内)
: 但不知道有哪些可用的方法 @@~
: 谢谢大家罗
.java.lang.Throwable
getMessage()
Returns the detail message string of this throwable.
printStackTrace(PrintStream s)
Prints this throwable and its backtrace to the specified print stream.
Reference:
http://java.sun.com/javase/6/docs/api/index.html
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 60.248.127.91