01: /*
02: * Copyright 2001-2007 Geert Bevin <gbevin[remove] at uwyn dot com>
03: * Distributed under the terms of either:
04: * - the common development and distribution license (CDDL), v1.0; or
05: * - the GNU Lesser General Public License, v2.1 or later
06: * $Id: UploadedSubmissionFilesInjectionException.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.engine.exceptions;
09:
10: public class UploadedSubmissionFilesInjectionException extends
11: EngineException {
12: private static final long serialVersionUID = 7932152562834625462L;
13:
14: private String mDeclarationName = null;
15: private Class mElementClass = null;
16: private String mFileName = null;
17:
18: public UploadedSubmissionFilesInjectionException(
19: String declarationName, Class elementClass,
20: String fileName, Throwable e) {
21: super (
22: "An error occurred while injecting the uploaded submission file '"
23: + fileName + "' of element '" + declarationName
24: + "' into class '" + elementClass.getName()
25: + "'.", e);
26:
27: mDeclarationName = declarationName;
28: mElementClass = elementClass;
29: mFileName = fileName;
30: }
31:
32: public String getDeclarationName() {
33: return mDeclarationName;
34: }
35:
36: public Class getElementClass() {
37: return mElementClass;
38: }
39:
40: public String getFileName() {
41: return mFileName;
42: }
43: }
|