| PushletException.java |
1 // Copyright (c) 2000 Just Objects B.V. <just@justobjects.nl>
2 // Distributable under LGPL license. See terms of license at gnu.org.
3
4 package nl.justobjects.pushlet.util;
5
6 /**
7 * Generic exception wrapper.
8 *
9 * @author Just van den Broecke
10 * @version $Id: PushletException.java,v 1.1 2005/02/15 15:14:34 justb Exp $
11 */
12public 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/*
35 * $Log: PushletException.java,v $
36 * Revision 1.1 2005/02/15 15:14:34 justb
37 * *** empty log message ***
38 *
39
40 *
41 */| PushletException.java |