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