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: SubmissionBeanGroupRequiresValidatedConstrainedException.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.engine.exceptions;
09:
10: public class SubmissionBeanGroupRequiresValidatedConstrainedException
11: extends EngineException {
12: private static final long serialVersionUID = -5077797557350922842L;
13:
14: private String mDeclarationName = null;
15: private String mSubmissionName = null;
16: private String mClassName = null;
17: private String mGroupName = null;
18:
19: public SubmissionBeanGroupRequiresValidatedConstrainedException(
20: String declarationName, String submissionName,
21: String className, String groupName) {
22: super ("The element '" + declarationName
23: + "' declared the bean in submission '"
24: + submissionName + "' with the group '" + groupName
25: + "', however its class '" + className
26: + "' doesn't implement ValidatedConstrained.");
27:
28: mDeclarationName = declarationName;
29: mSubmissionName = submissionName;
30: mClassName = className;
31: mGroupName = groupName;
32: }
33:
34: public String getDeclarationName() {
35: return mDeclarationName;
36: }
37:
38: public String getSubmissionName() {
39: return mSubmissionName;
40: }
41:
42: public String getClassName() {
43: return mClassName;
44: }
45:
46: public String getGroupName() {
47: return mGroupName;
48: }
49: }
|