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: PropertyValueErrorException.java 3643 2007-01-12 15:29:45Z gbevin $
07: */
08: package com.uwyn.rife.engine.exceptions;
09:
10: import com.uwyn.rife.ioc.exceptions.PropertyValueException;
11:
12: public class PropertyValueErrorException extends EngineException {
13: private static final long serialVersionUID = 4400535247294963445L;
14:
15: private String mDeclarationName = null;
16:
17: public PropertyValueErrorException(String declarationName,
18: PropertyValueException e) {
19: super (
20: "An error occured while retrieving a value for a property of element '"
21: + declarationName + "'.", e);
22:
23: mDeclarationName = declarationName;
24: }
25:
26: public String getDeclarationName() {
27: return mDeclarationName;
28: }
29: }
|