1 package org.djutils.serialization;
2
3 /**
4 * Exception for the DSOL ZeroMQ bridge.
5 * <p>
6 * Copyright (c) 2019-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
7 * BSD-style license. See <a href="https://opentrafficsim.org/node/13">OpenTrafficSim License</a>.
8 * <p>
9 * @version $Revision$, $LastChangedDate$, by $Author$, <br>
10 * @author <a href="https://www.tudelft.nl/averbraeck">Alexander Verbraeck</a>
11 * @author <a href="https://www.tudelft.nl/staff/p.knoppers/">Peter Knoppers</a>
12 * @author <a href="https://www.transport.citg.tudelft.nl">Wouter Schakel</a>
13 */
14 public class SerializationException extends Exception
15 {
16 /** */
17 private static final long serialVersionUID = 20190611L;
18
19 /**
20 * Create a serialization exception.
21 */
22 public SerializationException()
23 {
24 }
25
26 /**
27 * Create a serialization exception.
28 * @param message the message
29 */
30 public SerializationException(final String message)
31 {
32 super(message);
33 }
34
35 /**
36 * Create a serialization exception.
37 * @param cause the exception that caused the serialization exception
38 */
39 public SerializationException(final Throwable cause)
40 {
41 super(cause);
42 }
43
44 /**
45 * Create a serialization exception.
46 * @param message the message
47 * @param cause the exception that caused the serialization exception
48 */
49 public SerializationException(final String message, final Throwable cause)
50 {
51 super(message, cause);
52 }
53
54 /**
55 * Create a serialization exception.
56 * @param message the message
57 * @param cause the exception that caused the serialization exception
58 * @param enableSuppression to enable suppressions or not
59 * @param writableStackTrace to have a writable stack trace or not
60 */
61 public SerializationException(final String message, final Throwable cause, final boolean enableSuppression,
62 final boolean writableStackTrace)
63 {
64 super(message, cause, enableSuppression, writableStackTrace);
65 }
66
67 }