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: NamedSubmissionBeanPropertiesErrorException.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.engine.exceptions;
09:
10: public class NamedSubmissionBeanPropertiesErrorException extends
11: EngineException {
12: private static final long serialVersionUID = 2827160429495848251L;
13:
14: private String mDeclarationName = null;
15: private String mSubmissionName = null;
16: private String mBeanName = null;
17: private String mClassName = null;
18:
19: public NamedSubmissionBeanPropertiesErrorException(
20: String declarationName, String submissionName,
21: String beanName, String className, Throwable cause) {
22: super (
23: "Unexpected error while obtaining the properties of the named bean '"
24: + beanName + "' with class '" + className
25: + "' of submission '" + submissionName
26: + "' in element '" + declarationName + "'.",
27: cause);
28:
29: mDeclarationName = declarationName;
30: mSubmissionName = submissionName;
31: mBeanName = beanName;
32: mClassName = className;
33: }
34:
35: public String getDeclarationName() {
36: return mDeclarationName;
37: }
38:
39: public String getSubmissionName() {
40: return mSubmissionName;
41: }
42:
43: public String getBeanName() {
44: return mBeanName;
45: }
46:
47: public String getClassName() {
48: return mClassName;
49: }
50: }
|