1 package org.djutils.data.serialization; 2 3 /** 4 * TextSerializationException is the exception thrown on errors when (de)serializing objects. 5 * <br><br> 6 * Copyright (c) 2020-2020 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See 7 * for project information <a href="https://djutils.org" target="_blank"> https://djutils.org</a>. The DJUTILS project is 8 * distributed under a three-clause BSD-style license, which can be found at 9 * <a href="https://djutils.org/docs/license.html" target="_blank"> https://djutils.org/docs/license.html</a>. 10 * <br> 11 * @author <a href="https://www.tudelft.nl/averbraeck">Alexander Verbraeck</a> 12 * @author <a href="https://www.tudelft.nl/pknoppers">Peter Knoppers</a> 13 * @author <a href="http://www.transport.citg.tudelft.nl">Wouter Schakel</a> 14 */ 15 public class TextSerializationException extends Exception 16 { 17 18 /** */ 19 private static final long serialVersionUID = 20200302L; 20 21 /** 22 * Constructor for TextSerializationException. 23 */ 24 public TextSerializationException() 25 { 26 } 27 28 /** 29 * Constructor for TextSerializationException. 30 * @param message String; explanation of the exception 31 * @param cause Throwable; underlying exception 32 */ 33 public TextSerializationException(final String message, final Throwable cause) 34 { 35 super(message, cause); 36 } 37 38 /** 39 * Constructor for TextSerializationException. 40 * @param message String; explanation of the exception 41 */ 42 public TextSerializationException(final String message) 43 { 44 super(message); 45 } 46 47 /** 48 * Constructor for TextSerializationException. 49 * @param cause Throwable; underlying exception 50 */ 51 public TextSerializationException(final Throwable cause) 52 { 53 super(cause); 54 } 55 56 } 57