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: UnknownOrdinalRestrictionException.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.cmf.dam.exceptions;
09:
10: public class UnknownOrdinalRestrictionException extends
11: ContentManagerException {
12: private static final long serialVersionUID = -1656164424552067374L;
13:
14: private Class mBeanClass = null;
15: private String mProperty = null;
16: private String mRestriction = null;
17:
18: public UnknownOrdinalRestrictionException(Class beanClass,
19: String property, String restriction) {
20: super (
21: "The property '"
22: + property
23: + "' of bean '"
24: + beanClass.getName()
25: + "' declares itself as being a restricted ordinal, but the restriction property '"
26: + restriction + "' can't be found.");
27:
28: mBeanClass = beanClass;
29: mProperty = property;
30: mRestriction = restriction;
31: }
32:
33: public Class getBeanClass() {
34: return mBeanClass;
35: }
36:
37: public String getProperty() {
38: return mProperty;
39: }
40:
41: public String getRestriction() {
42: return mRestriction;
43: }
44: }
|