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: ParameterInjectionException.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.engine.exceptions;
09:
10: public class ParameterInjectionException extends EngineException {
11: private static final long serialVersionUID = -7879149913448690863L;
12:
13: private String mDeclarationName = null;
14: private Class mElementClass = null;
15: private String mSubmissionName = null;
16: private String mParameterName = null;
17:
18: public ParameterInjectionException(String declarationName,
19: Class elementClass, String submissionName,
20: String parameterName, Throwable e) {
21: super (
22: "An error occurred while injecting the values for the parameter '"
23: + parameterName + "' of submission '"
24: + submissionName + "' of element '"
25: + declarationName + "' into class '"
26: + elementClass.getName() + "'.", e);
27:
28: mDeclarationName = declarationName;
29: mElementClass = elementClass;
30: mSubmissionName = submissionName;
31: mParameterName = parameterName;
32: }
33:
34: public String getDeclarationName() {
35: return mDeclarationName;
36: }
37:
38: public Class getElementClass() {
39: return mElementClass;
40: }
41:
42: public String getSubmissionName() {
43: return mSubmissionName;
44: }
45:
46: public String getParameterName() {
47: return mParameterName;
48: }
49: }
|