1 /* 2 * Copyright 2006-2008 The Kuali Foundation 3 * 4 * Licensed under the Educational Community License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.opensource.org/licenses/ecl2.php 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 package org.kuali.rice.kns.exception; 17 18 import org.apache.struts.action.ActionForm; 19 import org.apache.struts.action.ActionMapping; 20 21 /** 22 * This class represents an FileUploadLimitExceededException. 23 * 24 * 25 */ 26 27 public class FileUploadLimitExceededException extends KualiException { 28 29 private ActionForm actionForm; 30 private ActionMapping actionMapping; 31 32 /** 33 * Create an FileUploadLimitExceededException with the given message 34 * 35 * @param message 36 */ 37 public FileUploadLimitExceededException(String message, ActionForm actionForm, ActionMapping actionMapping) { 38 super(message); 39 this.actionForm = actionForm; 40 this.actionMapping = actionMapping; 41 } 42 43 /** 44 * Create an FileUploadLimitExceededException with the given message and cause 45 * 46 * @param message 47 * @param cause 48 */ 49 public FileUploadLimitExceededException(String message, Throwable cause) { 50 super(message, cause); 51 } 52 53 /** 54 * @return the actionForm 55 */ 56 public ActionForm getActionForm() { 57 return this.actionForm; 58 } 59 60 /** 61 * @return the actionMapping 62 */ 63 public ActionMapping getActionMapping() { 64 return this.actionMapping; 65 } 66 67 }