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: SerializationErrorException.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.tools.exceptions;
09:
10: import com.uwyn.rife.tools.exceptions.SerializationUtilsErrorException;
11: import java.io.Serializable;
12:
13: public class SerializationErrorException extends
14: SerializationUtilsErrorException {
15: private static final long serialVersionUID = -5423479498545742611L;
16:
17: private Serializable mSerializable = null;
18:
19: public SerializationErrorException(Serializable serializable,
20: Throwable cause) {
21: super ("Errors occurred during the serialization of '"
22: + serializable + "'.", cause);
23:
24: mSerializable = serializable;
25: }
26:
27: public Serializable getSerializable() {
28: return mSerializable;
29: }
30: }
|