1 7 8 package java.io; 9 10 29 public class WriteAbortedException extends ObjectStreamException { 30 static final long serialVersionUID = -3326426625597282442L; 31 32 41 public Exception detail; 42 43 49 public WriteAbortedException(String s, Exception ex) { 50 super(s); 51 initCause(null); detail = ex; 53 } 54 55 59 public String getMessage() { 60 if (detail == null) 61 return super.getMessage(); 62 else 63 return super.getMessage() + "; " + detail.toString(); 64 } 65 66 73 public Throwable getCause() { 74 return detail; 75 } 76 } 77 | Popular Tags |