setThrowable

abstract fun setThrowable(throwable: Throwable)

直接包装已有异常实例。

与 setMessageAndClassName 互斥,重复调用抛 IllegalStateException。

Parameters

throwable

待包装的异常对象