1 4 package nl.justobjects.pushlet.util; 5 6 12 public class PushletException extends Exception { 13 14 private PushletException() { 15 } 16 17 public PushletException(String aMessage, Throwable t) { 18 super(aMessage + "\n embedded exception=" + t.toString()); 19 } 20 21 public PushletException(String aMessage) { 22 super(aMessage); 23 } 24 25 public PushletException(Throwable t) { 26 this("PushletException: ", t); 27 } 28 29 public String toString() { 30 return "PushletException: " + getMessage(); 31 } 32 } 33 34 | Popular Tags |