1 22 package org.jboss.test.bank.interfaces; 23 24 30 public class BankException 31 extends Exception  32 { 33 35 Exception cause; 37 38 40 public BankException(String message) 42 { 43 super(message); 44 } 45 46 public BankException(String message, Exception e) 47 { 48 super(message); 49 50 cause = e; 51 } 52 53 public Throwable getCause() { return cause; } 55 56 public String toString() { return super.toString()+", Cause:"+cause; } 57 } 58 59 85 | Popular Tags |