1 package org.djutils.serialization; 2 3 /** 4 * Exception for the DSOL ZeroMQ bridge. 5 * <p> 6 * Copyright (c) 2019-2023 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br> 7 * BSD-style license. See <a href="https://djutils.org/docs/current/djutils/licenses.html">DJUTILS 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 */ 13 public class SerializationException extends Exception 14 { 15 /** */ 16 private static final long serialVersionUID = 20190611L; 17 18 /** 19 * Create a serialization exception. 20 */ 21 public SerializationException() 22 { 23 } 24 25 /** 26 * Create a serialization exception. 27 * @param message String; the message 28 */ 29 public SerializationException(final String message) 30 { 31 super(message); 32 } 33 34 /** 35 * Create a serialization exception. 36 * @param cause Throwable; the exception that caused the serialization exception 37 */ 38 public SerializationException(final Throwable cause) 39 { 40 super(cause); 41 } 42 43 /** 44 * Create a serialization exception. 45 * @param message String; the message 46 * @param cause Throwable; the exception that caused the serialization exception 47 */ 48 public SerializationException(final String message, final Throwable cause) 49 { 50 super(message, cause); 51 } 52 53 /** 54 * Create a serialization exception. 55 * @param message String; the message 56 * @param cause Throwable; the exception that caused the serialization exception 57 * @param enableSuppression boolean; to enable suppressions or not 58 * @param writableStackTrace boolean; to have a writable stack trace or not 59 */ 60 public SerializationException(final String message, final Throwable cause, final boolean enableSuppression, 61 final boolean writableStackTrace) 62 { 63 super(message, cause, enableSuppression, writableStackTrace); 64 } 65 66 }