mirror of
https://github.com/corda/corda.git
synced 2025-01-01 10:46:46 +00:00
28 lines
525 B
Java
28 lines
525 B
Java
package java.lang;
|
|
|
|
public class Throwable {
|
|
private String message;
|
|
private StackTraceElement[] trace;
|
|
private Throwable cause;
|
|
|
|
public Throwable(String message, Throwable cause) {
|
|
this.message = message;
|
|
this.trace = trace(1);
|
|
this.cause = cause;
|
|
}
|
|
|
|
public Throwable(String message) {
|
|
this(message, null);
|
|
}
|
|
|
|
public Throwable(Throwable cause) {
|
|
this(null, cause);
|
|
}
|
|
|
|
public Throwable() {
|
|
this(null, null);
|
|
}
|
|
|
|
private static native StackTraceElement[] trace(int skipCount);
|
|
}
|