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