2007-06-20 19:37:43 -06:00
|
|
|
package java.lang;
|
|
|
|
|
|
|
|
public class Throwable {
|
|
|
|
private String message;
|
2007-06-29 19:37:45 -06:00
|
|
|
private StackTraceElement[] trace;
|
2007-06-24 13:57:00 -06:00
|
|
|
private Throwable cause;
|
2007-06-29 19:37:45 -06:00
|
|
|
|
|
|
|
public Throwable(String message, Throwable cause) {
|
|
|
|
this.message = message;
|
2007-06-29 20:41:49 -06:00
|
|
|
this.trace = trace(1);
|
2007-06-29 19:37:45 -06:00
|
|
|
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);
|
2007-06-20 19:37:43 -06:00
|
|
|
}
|