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 super(); 25 } 26 27 /** 28 * Create a serialization exception. 29 * @param message the message 30 */ 31 public SerializationException(final String message) 32 { 33 super(message); 34 } 35 36 /** 37 * Create a serialization exception. 38 * @param cause the exception that caused the serialization exception 39 */ 40 public SerializationException(final Throwable cause) 41 { 42 super(cause); 43 } 44 45 /** 46 * Create a serialization exception. 47 * @param message the message 48 * @param cause the exception that caused the serialization exception 49 */ 50 public SerializationException(final String message, final Throwable cause) 51 { 52 super(message, cause); 53 } 54 55 /** 56 * Create a serialization exception. 57 * @param message the message 58 * @param cause the exception that caused the serialization exception 59 * @param enableSuppression to enable suppressions or not 60 * @param writableStackTrace to have a writable stack trace or not 61 */ 62 public SerializationException(final String message, final Throwable cause, final boolean enableSuppression, 63 final boolean writableStackTrace) 64 { 65 super(message, cause, enableSuppression, writableStackTrace); 66 } 67 68 }