mirror of
https://github.com/corda/corda.git
synced 2025-01-07 05:28:51 +00:00
Improved Throwable so that if getCause is overriden the printStackTrace will get the cause
This commit is contained in:
parent
73bcc766c1
commit
8c15c14260
@ -12,7 +12,6 @@ package java.lang;
|
||||
|
||||
import java.io.PrintStream;
|
||||
import java.io.PrintWriter;
|
||||
import java.io.IOException;
|
||||
import java.io.Serializable;
|
||||
|
||||
public class Throwable implements Serializable {
|
||||
@ -113,9 +112,9 @@ public class Throwable implements Serializable {
|
||||
sb.append(" at ").append(trace[i].toString()).append(nl);
|
||||
}
|
||||
|
||||
if (cause != null) {
|
||||
if (getCause() != null) {
|
||||
sb.append("caused by: ");
|
||||
cause.printStackTrace(sb, nl);
|
||||
getCause().printStackTrace(sb, nl);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user