1 7 8 package java.rmi.activation; 9 10 28 public class ActivationException extends Exception { 29 30 39 public Throwable detail; 40 41 42 private static final long serialVersionUID = -4320118837291406071L; 43 44 47 public ActivationException() { 48 initCause(null); } 50 51 57 public ActivationException(String s) { 58 super(s); 59 initCause(null); } 61 62 70 public ActivationException(String s, Throwable cause) { 71 super(s); 72 initCause(null); detail = cause; 74 } 75 76 82 public String getMessage() { 83 if (detail == null) 84 return super.getMessage(); 85 else 86 return super.getMessage() + 87 "; nested exception is: \n\t" + 88 detail.toString(); 89 } 90 91 98 public Throwable getCause() { 99 return detail; 100 } 101 } 102 | Popular Tags |