KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > ejb3 > test > bank > BankException


1 /*
2   * JBoss, Home of Professional Open Source
3   * Copyright 2005, JBoss Inc., and individual contributors as indicated
4   * by the @authors tag. See the copyright.txt in the distribution for a
5   * full listing of individual contributors.
6   *
7   * This is free software; you can redistribute it and/or modify it
8   * under the terms of the GNU Lesser General Public License as
9   * published by the Free Software Foundation; either version 2.1 of
10   * the License, or (at your option) any later version.
11   *
12   * This software is distributed in the hope that it will be useful,
13   * but WITHOUT ANY WARRANTY; without even the implied warranty of
14   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15   * Lesser General Public License for more details.
16   *
17   * You should have received a copy of the GNU Lesser General Public
18   * License along with this software; if not, write to the Free
19   * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20   * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21   */

22 package org.jboss.ejb3.test.bank;
23
24 /**
25  * @see <related>
26  * @author $Author: starksm $
27  * @version $Revision: 41968 $
28  */

29 public class BankException extends Exception JavaDoc
30 {
31    // Constants -----------------------------------------------------
32

33    // Attributes ----------------------------------------------------
34
Exception JavaDoc cause;
35
36    // Static --------------------------------------------------------
37

38    // Constructors --------------------------------------------------
39
public BankException(String JavaDoc message)
40    {
41       super(message);
42    }
43
44    public BankException(String JavaDoc message, Exception JavaDoc e)
45    {
46       super(message);
47
48       cause = e;
49    }
50
51    // Public --------------------------------------------------------
52
public Throwable JavaDoc getCause()
53    {
54       return cause;
55    }
56
57    public String JavaDoc toString()
58    {
59       return super.toString() + ", Cause:" + cause;
60    }
61 }
62
63 /*
64  * $Id: BankException.java 41968 2006-03-09 05:14:48Z starksm $ Currently
65  * locked by:$Locker$ Revision: $Log$
66  * locked by:$Locker: $ Revision: Revision 1.4 2006/03/09 05:12:58 starksm
67  * locked by:$Locker: $ Revision: cleanup unused imports
68  * locked by:$Locker: $ Revision:
69  * locked by:$Locker$ Revision: Revision 1.3 2005/10/30 00:06:46 starksm
70  * locked by:$Locker$ Revision: Update the jboss LGPL headers
71  * locked by:$Locker$ Revision:
72  * locked by:$Locker$ Revision: Revision 1.2 2005/05/03 23:51:01 bdecoste
73  * locked by:$Locker$ Revision: fixed formatting
74  * locked by:$Locker$ Revision: Revision 1.1
75  * 2005/05/03 20:35:11 bdecoste test for ejb3 deployment descriptors Revision
76  * 1.3 2001/12/04 18:36:47 boissier * In JDK 1.4, the Throwable interface has a
77  * new method: public Throwable getCause() This causes a conflict with the file
78  * BankException.java. This patch fixes that. Revision 1.2 2001/01/07 23:14:35
79  * peter Trying to get JAAS to work within test suite. Revision 1.1.1.1
80  * 2000/06/21 15:52:38 oberg Initial import of jBoss test. This module contains
81  * CTS tests, some simple examples, and small bean suites.
82  */

83
Popular Tags