1 package com.instantbank.servicing.control; 2 3 import java.io.Serializable; 4 5 /** 6 * This exception is the base class for all the web runtime exceptions. 7 * 8 * @author Instant-bank (Consuelo Franky) 9 * @created September 2002 10 */ 11 public class GeneralFailureException extends RuntimeException 12 implements Serializable { 13 14 private Throwable t; 15 16 17 /** 18 * Constructor for the GeneralFailureException object 19 * 20 * @param s message of exception 21 */ 22 public GeneralFailureException(String s) { 23 super(s); 24 } 25 26 27 /** 28 * Constructor for the GeneralFailureException object 29 * 30 * @param s message of exception 31 * @param t Throwable object 32 */ 33 public GeneralFailureException(String s, Throwable t) { 34 super(s); 35 this.t = t; 36 } 37 38 39 /** 40 * Gets the throwable attribute of the GeneralFailureException object 41 * 42 * @return The throwable value 43 */ 44 public String getThrowable() { 45 return ("Received throwable with Message: " + t.getMessage()); 46 } 47 } 48 49