Java e getMessage 錯誤信息爲null

                解決方案:用e.printStackTrace() e.getMessage()爲null也很正常,NullPointException的getMessage()就爲null 我在拋出Exception時也可以直接  throw new MyException(); 這樣getMessage()返回的就是null了 這幾天做的項目,測試小組說測出來的異常日誌有問題,
相關文章
相關標籤/搜索