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: MissingIdentifierValueException.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.cmf.dam.exceptions;
09:
10: public class MissingIdentifierValueException extends
11: ContentManagerException {
12: private static final long serialVersionUID = -1157200832197263833L;
13:
14: private Class mBeanClass = null;
15: private String mIdentifierName = null;
16:
17: public MissingIdentifierValueException(Class beanClass,
18: String identifierName) {
19: super ("The instance of bean '" + beanClass.getName()
20: + "' should have value for the identifier '"
21: + identifierName + "'.");
22:
23: mBeanClass = beanClass;
24: mIdentifierName = identifierName;
25: }
26:
27: public Class getBeanClass() {
28: return mBeanClass;
29: }
30:
31: public String getIdentifierName() {
32: return mIdentifierName;
33: }
34: }
|