1 package org.djutils.data.serialization; 2 3 /** 4 * TextSerializationException is the exception thrown on errors when (de)serializing objects. 5 * <p> 6 * Copyright (c) 2020-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://github.com/averbraeck">Alexander Verbraeck</a> 10 * @author <a href="https://tudelft.nl/staff/p.knoppers-1">Peter Knoppers</a> 11 * @author <a href="https://dittlab.tudelft.nl">Wouter Schakel</a> 12 */ 13 public class TextSerializationException extends Exception 14 { 15 16 /** */ 17 private static final long serialVersionUID = 20200302L; 18 19 /** 20 * Constructor for TextSerializationException. 21 */ 22 public TextSerializationException() 23 { 24 } 25 26 /** 27 * Constructor for TextSerializationException. 28 * @param message String; explanation of the exception 29 * @param cause Throwable; underlying exception 30 */ 31 public TextSerializationException(final String message, final Throwable cause) 32 { 33 super(message, cause); 34 } 35 36 /** 37 * Constructor for TextSerializationException. 38 * @param message String; explanation of the exception 39 */ 40 public TextSerializationException(final String message) 41 { 42 super(message); 43 } 44 45 /** 46 * Constructor for TextSerializationException. 47 * @param cause Throwable; underlying exception 48 */ 49 public TextSerializationException(final Throwable cause) 50 { 51 super(cause); 52 } 53 54 }