mirror of
https://github.com/corda/corda.git
synced 2025-03-15 00:36:49 +00:00
add methods to Throwable
This commit is contained in:
parent
017116d060
commit
f96fa82607
@ -55,6 +55,10 @@ public class Throwable implements Serializable {
|
||||
return message;
|
||||
}
|
||||
|
||||
public String getLocalizedMessage() {
|
||||
return getMessage();
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append(getClass().getName());
|
||||
@ -79,6 +83,10 @@ public class Throwable implements Serializable {
|
||||
return resolveTrace();
|
||||
}
|
||||
|
||||
public void setStackTrace(StackTraceElement[] trace) {
|
||||
this.trace = trace;
|
||||
}
|
||||
|
||||
public void printStackTrace(PrintStream out) {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
printStackTrace(sb, System.getProperty("line.separator"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user