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 / security / PrivilegedActionException.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  1.2 KB  |  50 lines

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