1 18 19 package sync4j.syncclient.sps; 20 21 28 public class DataAccessException extends Exception { 29 30 private Throwable cause; 31 34 public DataAccessException(Throwable cause) { 35 super(); 36 this.cause = cause; 37 } 38 39 43 public DataAccessException(String msg) { 44 super(msg); 45 } 46 47 public void printStackTrace() { 48 super.printStackTrace(); 49 if(cause != null) 50 cause.printStackTrace(); 51 } 52 } | Popular Tags |