01: /**********************************************************************************
02: * $URL: https://source.sakaiproject.org/svn/metaobj/tags/sakai_2-4-1/metaobj-api/api/src/java/org/sakaiproject/metaobj/shared/model/InvalidUploadException.java $
03: * $Id: InvalidUploadException.java 8052 2006-04-20 18:16:21Z ggolden@umich.edu $
04: ***********************************************************************************
05: *
06: * Copyright (c) 2004, 2005, 2006 The Sakai Foundation.
07: *
08: * Licensed under the Educational Community License, Version 1.0 (the "License");
09: * you may not use this file except in compliance with the License.
10: * You may obtain a copy of the License at
11: *
12: * http://www.opensource.org/licenses/ecl1.php
13: *
14: * Unless required by applicable law or agreed to in writing, software
15: * distributed under the License is distributed on an "AS IS" BASIS,
16: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17: * See the License for the specific language governing permissions and
18: * limitations under the License.
19: *
20: **********************************************************************************/package org.sakaiproject.metaobj.shared.model;
21:
22: import org.apache.commons.logging.Log;
23: import org.apache.commons.logging.LogFactory;
24:
25: public class InvalidUploadException extends OspException {
26: protected final transient Log logger = LogFactory
27: .getLog(getClass());
28:
29: private String fieldName;
30:
31: /**
32: *
33: */
34: public InvalidUploadException(String fieldName) {
35: this .fieldName = fieldName;
36: }
37:
38: /**
39: * @param cause
40: */
41: public InvalidUploadException(Throwable cause, String fieldName) {
42: super (cause);
43: this .fieldName = fieldName;
44: }
45:
46: /**
47: * @param message
48: */
49: public InvalidUploadException(String message, String fieldName) {
50: super (message);
51: this .fieldName = fieldName;
52: }
53:
54: /**
55: * @param message
56: * @param cause
57: */
58: public InvalidUploadException(String message, Throwable cause,
59: String fieldName) {
60: super (message, cause);
61: this .fieldName = fieldName;
62: }
63:
64: public String getFieldName() {
65: return fieldName;
66: }
67:
68: public void setFieldName(String fieldName) {
69: this.fieldName = fieldName;
70: }
71: }
|