Throwable中的toString方法


这样调用toString,会直接调用默认父类Object中的toString。所以必需让类继承Throwable或Exception,让Throwable中的toString覆盖Object中的toString。


Throwable中的toString伪代码 



原文地址:https://www.cnblogs.com/lisisong/p/5122627.html