1 package org.jgroups.persistence; 2 3 9 10 11 public class CannotConnectException extends Exception  12 { 13 14 18 public CannotConnectException(Exception t, String reason) 19 { 20 this.t = t; 21 this.reason = reason; 22 } 23 24 28 public CannotConnectException(Throwable t, String reason) 29 { 30 this.t = t; 31 this.reason = reason; 32 } 33 34 37 public String toString() 38 { 39 String tmp = "Exception " + t.toString() + " was thrown due to " + reason; 40 return tmp; 41 } 42 43 47 public Throwable t = null; 48 public String reason = null; 49 } 50 | Popular Tags |