| BankException.java |
/*
* JBoss, the OpenSource J2EE webOS
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package org.jboss.test.bankiiop.interfaces;
import java.rmi.*;
import javax.ejb.*;
/**
*
* @author Rickard Oberg
* @author $Author: starksm $
* @version $Revision: 1.1.26.1 $
*/
public class BankException
extends Exception
{
// Constants -----------------------------------------------------
// Attributes ----------------------------------------------------
Exception cause;
// Static --------------------------------------------------------
// Constructors --------------------------------------------------
public BankException(String message)
{
super(message);
}
public BankException(String message, Exception e)
{
super(message);
cause = e;
}
// Public --------------------------------------------------------
public Throwable getCause() { return cause; }
public String toString() { return super.toString()+", Cause:"+cause; }
}
/*
* $Id: BankException.java,v 1.1.26.1 2005/04/06 16:28:06 starksm Exp $
* Currently locked by:$Locker: $
* Revision:
* $Log: BankException.java,v $
* Revision 1.1.26.1 2005/04/06 16:28:06 starksm
* Fix the license header
*
* Revision 1.1 2002/03/15 22:36:28 reverbel
* Initial version of the bank test for JBoss/IIOP.
*
* Revision 1.3 2001/12/04 18:36:47 boissier
* * In JDK 1.4, the Throwable interface has a new method:
* public Throwable getCause()
* This causes a conflict with the file BankException.java.
* This patch fixes that.
*
* Revision 1.2 2001/01/07 23:14:35 peter
* Trying to get JAAS to work within test suite.
*
* Revision 1.1.1.1 2000/06/21 15:52:38 oberg
* Initial import of jBoss test. This module contains CTS tests, some simple examples, and small bean suites.
*
*
*
*/
| BankException.java |