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: UnserializableOutputValueException.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.engine.exceptions;
09:
10: import com.uwyn.rife.tools.exceptions.SerializationUtilsErrorException;
11:
12: public class UnserializableOutputValueException extends EngineException {
13: private static final long serialVersionUID = -7317663625061951368L;
14:
15: private String mDeclarationName = null;
16: private String mOutputName = null;
17: private Object mValue = null;
18:
19: public UnserializableOutputValueException(String declarationName,
20: String outputName, Object value,
21: SerializationUtilsErrorException cause) {
22: super ("The value '" + value + "' for the output '" + outputName
23: + "' of element '" + declarationName
24: + "' can't be serialized to a string.", cause);
25:
26: mDeclarationName = declarationName;
27: mOutputName = outputName;
28: mValue = value;
29: }
30:
31: public String getDeclarationName() {
32: return mDeclarationName;
33: }
34:
35: public String getOutputName() {
36: return mOutputName;
37: }
38:
39: public Object getValue() {
40: return mValue;
41: }
42: }
|