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