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: WrongConstrainedPropertyVariantException.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.cmf.dam.exceptions;
09:
10: public class WrongConstrainedPropertyVariantException extends
11: ContentManagerException {
12: private static final long serialVersionUID = 7752599853025679192L;
13:
14: private Class mBeanClass = null;
15: private String mProperty = null;
16:
17: public WrongConstrainedPropertyVariantException(Class beanClass,
18: String property) {
19: super ("The constrained property '" + property + "' of bean '"
20: + beanClass.getName()
21: + "' is not an instance of CmfProperty.");
22:
23: mBeanClass = beanClass;
24: mProperty = property;
25: }
26:
27: public Class getBeanClass() {
28: return mBeanClass;
29: }
30:
31: public String getProperty() {
32: return mProperty;
33: }
34: }
|