1 package com.instantbank.lettertemplate.control.web; 2 3 import java.io.Serializable; 4 import java.util.Collection; 5 6 /** 7 * This exception is thrown by the RequestToEventTranslator when a user fails 8 * to provide enough form information. This exception contains list of form 9 * fields needed. This exception is used by a JSP page to generate an error 10 * page. 11 * 12 * @author Instant-bank (Consuelo Franky) 13 * @created September 2002 14 */ 15 public class MissingFormDataException extends Exception 16 implements Serializable { 17 private Collection missingFields; 18 private String message; 19 20 21 /** 22 * constructor 23 * 24 * @param message exception message 25 * @param missingFields list of missing user data 26 */ 27 public MissingFormDataException 28 (String message, Collection missingFields) { 29 this.message = message; 30 this.missingFields = missingFields; 31 } 32 33 34 /** 35 * Gets the missingFields attribute of the MissingFormDataException object 36 * 37 * @return The missingFields value 38 */ 39 public Collection getMissingFields() { 40 return missingFields; 41 } 42 43 44 /** 45 * Gets the message attribute of the MissingFormDataException object 46 * 47 * @return The message value 48 */ 49 public String getMessage() { 50 return message; 51 } 52 53 } 54 55