2007-06-21 01:37:43 +00:00
|
|
|
package java.lang;
|
|
|
|
|
|
|
|
public class Throwable {
|
|
|
|
private String message;
|
2007-06-30 01:37:45 +00:00
|
|
|
private StackTraceElement[] trace;
|
2007-06-24 19:57:00 +00:00
|
|
|
private Throwable cause;
|
2007-06-30 01:37:45 +00:00
|
|
|
|
|
|
|
public Throwable(String message, Throwable cause) {
|
|
|
|
this.message = message;
|
2007-06-30 02:39:01 +00:00
|
|
|
this.trace = trace(0);
|
2007-06-30 01:37:45 +00: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-21 01:37:43 +00:00
|
|
|
}
|