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