Re: [問題] PrintStackTrace
※ 引述《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
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 4 篇):
java 近期熱門文章
3
14
PTT數位生活區 即時熱門文章