1 package org.opentrafficsim.base.parameters; 2 3 /** 4 * Throwable for exceptions regarding parameters. 5 * <p> 6 * Copyright (c) 2013-2018 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br> 7 * BSD-style license. See <a href="http://opentrafficsim.org/docs/current/license.html">OpenTrafficSim License</a>. 8 * <p> 9 * @version $Revision$, $LastChangedDate$, by $Author$, initial version Apr 13, 2016 <br> 10 * @author <a href="http://www.tbm.tudelft.nl/averbraeck">Alexander Verbraeck</a> 11 * @author <a href="http://www.transport.citg.tudelft.nl">Wouter Schakel</a> 12 */ 13 public class ParameterException extends Exception 14 { 15 16 /** Serialization id. */ 17 private static final long serialVersionUID = 20160325L; 18 19 /** 20 * Empty constructor. 21 */ 22 public ParameterException() 23 { 24 } 25 26 /** 27 * Constructor with message. 28 * @param message Message. 29 */ 30 public ParameterException(final String message) 31 { 32 super(message); 33 } 34 35 /** 36 * Constructor with cause. 37 * @param cause Cause. 38 */ 39 public ParameterException(final Throwable cause) 40 { 41 super(cause); 42 } 43 44 /** 45 * Constructor with message and cause. 46 * @param message Message. 47 * @param cause Cause. 48 */ 49 public ParameterException(final String message, final Throwable cause) 50 { 51 super(message, cause); 52 } 53 54 /** 55 * Constructor with message and cause. 56 * @param message Message. 57 * @param cause Cause. 58 * @param enableSuppression Whether to enable suppression. 59 * @param writableStackTrace Whether or not the stack trace should be writable. 60 */ 61 public ParameterException(final String message, final Throwable cause, final boolean enableSuppression, 62 final boolean writableStackTrace) 63 { 64 super(message, cause, enableSuppression, writableStackTrace); 65 } 66 }