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: ElementMemberFieldUncloneableException.java 3819 2007-06-28 13:13:23Z gbevin $
07: */
08: package com.uwyn.rife.engine.exceptions;
09:
10: public class ElementMemberFieldUncloneableException extends
11: CloneNotSupportedException {
12: private static final long serialVersionUID = -5459045970180439274L;
13:
14: private String mImplementation = null;
15: private String mField = null;
16:
17: public ElementMemberFieldUncloneableException(
18: String implementation, String field, Throwable cause) {
19: super ("The implementation '" + implementation
20: + "' of element has the member field '" + field
21: + "' which can't be cloned.");
22: if (cause != null) {
23: initCause(cause);
24: }
25:
26: mImplementation = implementation;
27: mField = field;
28: }
29:
30: public String getImplementation() {
31: return mImplementation;
32: }
33:
34: public String getField() {
35: return mField;
36: }
37: }
|