1 22 package org.jboss.test.banknew.interfaces; 23 24 30 public class BankException 31 extends Exception  32 { 33 34 private static final long serialVersionUID = -5428014889831990981L; 35 36 Throwable cause; 37 38 public BankException(String message) 39 { 40 super(message); 41 } 42 43 public BankException(String message, Throwable e) 44 { 45 super(message); 46 47 cause = e; 48 } 49 50 public Throwable getCause() { return cause; } 51 52 public String toString() { return super.toString()+", Cause:"+cause; } 53 } 54 | Popular Tags |