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