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