Constructs a new instance with the given cause.
The message is set to cause==null ? null : cause.toString()
, which by default contains the class
and message of cause
. This constructor is useful for call sites that just wrap another throwable.
super(cause == null ? null : cause.toString());
this.initCause(cause);