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 / rmi / server / ServerCloneException.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  1.1 KB  |  51 lines

  1. package java.rmi.server;
  2.  
  3. import java.io.PrintStream;
  4. import java.io.PrintWriter;
  5.  
  6. public class ServerCloneException extends CloneNotSupportedException {
  7.    public Exception detail;
  8.    private static final long serialVersionUID = 6617456357664815945L;
  9.  
  10.    public ServerCloneException(String var1) {
  11.       super(var1);
  12.    }
  13.  
  14.    public ServerCloneException(String var1, Exception var2) {
  15.       super(var1);
  16.       this.detail = var2;
  17.    }
  18.  
  19.    public String getMessage() {
  20.       return this.detail == null ? super.getMessage() : super.getMessage() + "; nested exception is: \n\t" + this.detail.toString();
  21.    }
  22.  
  23.    public void printStackTrace(PrintStream var1) {
  24.       if (this.detail == null) {
  25.          super.printStackTrace(var1);
  26.       } else {
  27.          synchronized(var1) {
  28.             var1.println(this);
  29.             this.detail.printStackTrace(var1);
  30.          }
  31.       }
  32.  
  33.    }
  34.  
  35.    public void printStackTrace() {
  36.       this.printStackTrace(System.err);
  37.    }
  38.  
  39.    public void printStackTrace(PrintWriter var1) {
  40.       if (this.detail == null) {
  41.          super.printStackTrace(var1);
  42.       } else {
  43.          synchronized(var1) {
  44.             var1.println(this);
  45.             this.detail.printStackTrace(var1);
  46.          }
  47.       }
  48.  
  49.    }
  50. }
  51.