diff options
Diffstat (limited to 'libjava/java/lang/ExceptionInInitializerError.java')
-rw-r--r-- | libjava/java/lang/ExceptionInInitializerError.java | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/libjava/java/lang/ExceptionInInitializerError.java b/libjava/java/lang/ExceptionInInitializerError.java index 5c0144b..0aad2fc 100644 --- a/libjava/java/lang/ExceptionInInitializerError.java +++ b/libjava/java/lang/ExceptionInInitializerError.java @@ -1,15 +1,17 @@ // ExceptionInInitializerError.java -/* Copyright (C) 1998, 1999 Free Software Foundation +/* Copyright (C) 1998, 1999, 2000 Free Software Foundation This file is part of libgcj. This software is copyrighted work licensed under the terms of the Libgcj License. Please consult the file "LIBGCJ_LICENSE" for details. */ - + package java.lang; - +import java.io.PrintStream; +import java.io.PrintWriter; + /** * @author Tom Tromey <tromey@cygnus.com> * @date October 1, 1998 @@ -45,6 +47,21 @@ public class ExceptionInInitializerError extends LinkageError return exception; } + public void printStackTrace () + { + exception.printStackTrace (); + } + + public void printStackTrace (PrintStream ps) + { + exception.printStackTrace (ps); + } + + public void printStackTrace (PrintWriter pw) + { + exception.printStackTrace (pw); + } + // The exception that caused this error. private Throwable exception; } |