GTUException.java

  1. package org.opentrafficsim.core.gtu;


  2. /**
  3.  * Exception thrown when GTU encounters a problem.
  4.  * <p>
  5.  * Copyright (c) 2013-2016 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
  6.  * BSD-style license. See <a href="http://opentrafficsim.org/docs/license.html">OpenTrafficSim License</a>.
  7.  * <p>
  8.  * @version $Revision: 2051 $, $LastChangedDate: 2016-05-28 11:33:31 +0200 (Sat, 28 May 2016) $, by $Author: averbraeck $,
  9.  *          initial version Aug 22, 2014 <br>
  10.  * @author <a href="http://www.tbm.tudelft.nl/averbraeck">Alexander Verbraeck</a>
  11.  * @author <a href="http://www.tudelft.nl/pknoppers">Peter Knoppers</a>
  12.  */
  13. public class GTUException extends Exception
  14. {

  15.     /** */
  16.     private static final long serialVersionUID = 20150217L;

  17.     /**
  18.      *
  19.      */
  20.     public GTUException()
  21.     {
  22.     }

  23.     /**
  24.      * @param message String
  25.      */
  26.     public GTUException(final String message)
  27.     {
  28.         super(message);
  29.     }

  30.     /**
  31.      * @param cause Throwable
  32.      */
  33.     public GTUException(final Throwable cause)
  34.     {
  35.         super(cause);
  36.     }

  37.     /**
  38.      * @param message String
  39.      * @param cause Throwable
  40.      */
  41.     public GTUException(final String message, final Throwable cause)
  42.     {
  43.         super(message, cause);
  44.     }

  45.     /**
  46.      * @param message String; description of the problem
  47.      * @param cause Throwable; the cause of this Exception
  48.      * @param enableSuppression boolean; whether or not suppression is enabled or disabled
  49.      * @param writableStackTrace boolean; whether or not the stack trace should be writable
  50.      */
  51.     public GTUException(final String message, final Throwable cause, final boolean enableSuppression,
  52.             final boolean writableStackTrace)
  53.     {
  54.         super(message, cause, enableSuppression, writableStackTrace);
  55.     }
  56. }