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