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: UnknownConstrainedPropertyException.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.cmf.dam.exceptions;
09:
10: public class UnknownConstrainedPropertyException extends
11: ContentManagerException {
12: private static final long serialVersionUID = 1443710217884057575L;
13:
14: private Class mBeanClass = null;
15: private String mProperty = null;
16:
17: public UnknownConstrainedPropertyException(Class beanClass,
18: String property) {
19: super ("The property '" + property + "' of bean '"
20: + beanClass.getName()
21: + "' can't be found as a constrained property.");
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: }
|