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