KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > nl > justobjects > pushlet > util > PushletException


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  */

12 public class PushletException extends Exception JavaDoc {
13
14     private PushletException() {
15     }
16
17     public PushletException(String JavaDoc aMessage, Throwable JavaDoc t) {
18         super(aMessage + "\n embedded exception=" + t.toString());
19     }
20
21     public PushletException(String JavaDoc aMessage) {
22         super(aMessage);
23     }
24
25     public PushletException(Throwable JavaDoc t) {
26         this("PushletException: ", t);
27     }
28
29     public String JavaDoc 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  */
Popular Tags