bankexception.java

来自「Jboss s J2EE Sample」· Java 代码 · 共 48 行

JAVA
48
字号
/* * JBoss, the OpenSource J2EE webOS * * Distributable under LGPL license. * See terms of license at gnu.org. */package transaction.interfaces;/** *       *   @see <related> *   @author $Author: schaefera $ *   @version $Revision: 1.1 $ * *   Changes: *   <ul> *     <li>2002-05-05 danch changes to compile under JDK 1/4</li> *   </ul> */public class BankException   extends Exception{   // Constants -----------------------------------------------------       // Attributes ----------------------------------------------------   Throwable cause;      // Static --------------------------------------------------------   // Constructors --------------------------------------------------   public BankException(String message)   {      super(message);   }      public BankException(String message, Throwable e)   {      super(message);            cause = e;   }      // Public --------------------------------------------------------   public Throwable getCause() { return cause; }      public String toString() { return super.toString()+", Cause:"+cause; }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?