1 20 package fr.dyade.aaa.agent; 21 22 26 public class AgentException extends Exception { 27 28 34 private Throwable cause; 35 36 public AgentException(Throwable cause) { 37 super(cause.toString()); 38 this.cause = cause; 39 } 40 41 50 public final Throwable getCause() { 51 return cause; 52 } 53 54 private void writeObject(java.io.ObjectOutputStream out) 55 throws java.io.IOException { 56 out.writeObject(cause); 57 } 58 59 private void readObject(java.io.ObjectInputStream in) 60 throws java.io.IOException , ClassNotFoundException { 61 try { 62 this.cause = (Throwable )in.readObject(); 63 } catch (ClassNotFoundException exc) { 64 } 66 } 67 68 } 69 | Popular Tags |