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: PropertyConstructionException.java 3643 2007-01-12 15:29:45Z gbevin $
07: */
08: package com.uwyn.rife.ioc.exceptions;
09:
10: public class PropertyConstructionException extends RuntimeException {
11: private static final long serialVersionUID = -5470285155648841104L;
12:
13: private String mEntityType = null;
14: private String mDeclarationName = null;
15: private String mPropertyName = null;
16:
17: public PropertyConstructionException(String entityType,
18: String declarationName, String propertyName, Throwable e) {
19: super ("An error occured while constructing the property '"
20: + propertyName + "' of " + entityType + " '"
21: + declarationName + "'.", e);
22:
23: mEntityType = entityType;
24: mDeclarationName = declarationName;
25: mPropertyName = propertyName;
26: }
27:
28: public String getEntityType() {
29: return mEntityType;
30: }
31:
32: public String getDeclarationName() {
33: return mDeclarationName;
34: }
35:
36: public String getPropertyName() {
37: return mPropertyName;
38: }
39: }
|