1 package org.djutils.serialization; 2 3 /** 4 * Exception for the DSOL ZeroMQ bridge. 5 * <p> 6 * Copyright (c) 2019-2024 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 * @author <a href="https://www.tudelft.nl/averbraeck">Alexander Verbraeck</a> 10 * @author <a href="https://www.tudelft.nl/staff/p.knoppers/">Peter Knoppers</a> 11 */ 12 public class SerializationException extends Exception 13 { 14 /** */ 15 private static final long serialVersionUID = 20190611L; 16 17 /** 18 * Create a serialization exception. 19 */ 20 public SerializationException() 21 { 22 } 23 24 /** 25 * Create a serialization exception. 26 * @param message String; the message 27 */ 28 public SerializationException(final String message) 29 { 30 super(message); 31 } 32 33 /** 34 * Create a serialization exception. 35 * @param cause Throwable; the exception that caused the serialization exception 36 */ 37 public SerializationException(final Throwable cause) 38 { 39 super(cause); 40 } 41 42 /** 43 * Create a serialization exception. 44 * @param message String; the message 45 * @param cause Throwable; the exception that caused the serialization exception 46 */ 47 public SerializationException(final String message, final Throwable cause) 48 { 49 super(message, cause); 50 } 51 52 /** 53 * Create a serialization exception. 54 * @param message String; the message 55 * @param cause Throwable; the exception that caused the serialization exception 56 * @param enableSuppression boolean; to enable suppressions or not 57 * @param writableStackTrace boolean; to have a writable stack trace or not 58 */ 59 public SerializationException(final String message, final Throwable cause, final boolean enableSuppression, 60 final boolean writableStackTrace) 61 { 62 super(message, cause, enableSuppression, writableStackTrace); 63 } 64 65 }