1 package org.opentrafficsim.core.gtu; 2 3 /** 4 * Exception thrown when GTU encounters a problem. 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/license.html">OpenTrafficSim License</a>. 8 * <p> 9 * @version $Revision: 4006 $, $LastChangedDate: 2018-09-19 13:55:45 +0200 (Wed, 19 Sep 2018) $, by $Author: averbraeck $, 10 * initial version Aug 22, 2014 <br> 11 * @author <a href="http://www.tbm.tudelft.nl/averbraeck">Alexander Verbraeck</a> 12 * @author <a href="http://www.tudelft.nl/pknoppers">Peter Knoppers</a> 13 */ 14 public class GTUException extends Exception 15 { 16 17 /** */ 18 private static final long serialVersionUID = 20150217L; 19 20 /** 21 * 22 */ 23 public GTUException() 24 { 25 } 26 27 /** 28 * @param message String 29 */ 30 public GTUException(final String message) 31 { 32 super(message); 33 } 34 35 /** 36 * @param cause Throwable 37 */ 38 public GTUException(final Throwable cause) 39 { 40 super(cause); 41 } 42 43 /** 44 * @param message String 45 * @param cause Throwable 46 */ 47 public GTUException(final String message, final Throwable cause) 48 { 49 super(message, cause); 50 } 51 52 /** 53 * @param message String; description of the problem 54 * @param cause Throwable; the cause of this Exception 55 * @param enableSuppression boolean; whether or not suppression is enabled or disabled 56 * @param writableStackTrace boolean; whether or not the stack trace should be writable 57 */ 58 public GTUException(final String message, final Throwable cause, final boolean enableSuppression, 59 final boolean writableStackTrace) 60 { 61 super(message, cause, enableSuppression, writableStackTrace); 62 } 63 }