home *** CD-ROM | disk | FTP | other *** search
/ S283 Planetary Science &n…he Search for Life DVD 2 / DVD-ROM.iso / install / jre1_3 / lib / rt.jar / java / lang / ExceptionInInitializerError.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  979 b   |  53 lines

  1. package java.lang;
  2.  
  3. import java.io.PrintStream;
  4. import java.io.PrintWriter;
  5.  
  6. public class ExceptionInInitializerError extends LinkageError {
  7.    private static final long serialVersionUID = 1521711792217232256L;
  8.    private Throwable exception;
  9.  
  10.    public ExceptionInInitializerError() {
  11.    }
  12.  
  13.    public ExceptionInInitializerError(Throwable var1) {
  14.       this.exception = var1;
  15.    }
  16.  
  17.    public ExceptionInInitializerError(String var1) {
  18.       super(var1);
  19.    }
  20.  
  21.    public Throwable getException() {
  22.       return this.exception;
  23.    }
  24.  
  25.    public void printStackTrace() {
  26.       this.printStackTrace(System.err);
  27.    }
  28.  
  29.    public void printStackTrace(PrintStream var1) {
  30.       synchronized(var1) {
  31.          if (this.exception != null) {
  32.             var1.print("java.lang.ExceptionInInitializerError: ");
  33.             this.exception.printStackTrace(var1);
  34.          } else {
  35.             super.printStackTrace(var1);
  36.          }
  37.  
  38.       }
  39.    }
  40.  
  41.    public void printStackTrace(PrintWriter var1) {
  42.       synchronized(var1) {
  43.          if (this.exception != null) {
  44.             var1.print("java.lang.ExceptionInInitializerError: ");
  45.             this.exception.printStackTrace(var1);
  46.          } else {
  47.             super.printStackTrace(var1);
  48.          }
  49.  
  50.       }
  51.    }
  52. }
  53.