OTSSimulationException.java

  1. package org.opentrafficsim.simulationengine;

  2. /**
  3.  * Exception for the operational plan, e.g. when a request is given outside the plan's validity.
  4.  * <p>
  5.  * Copyright (c) 2013-2018 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.  * $LastChangedDate: 2015-07-24 02:58:59 +0200 (Fri, 24 Jul 2015) $, @version $Revision: 1147 $, by $Author: averbraeck $,
  9.  * initial version Dec 23, 2015 <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 OTSSimulationException extends Exception
  14. {
  15.     /** */
  16.     private static final long serialVersionUID = 20151223L;

  17.     /**
  18.      * Construct an operational plan exception.
  19.      */
  20.     public OTSSimulationException()
  21.     {
  22.         super();
  23.     }

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

  31.     /**
  32.      * @param cause exception that triggered this exception
  33.      */
  34.     public OTSSimulationException(final Throwable cause)
  35.     {
  36.         super(cause);
  37.     }

  38.     /**
  39.      * @param message exception message
  40.      * @param cause exception that triggered this exception
  41.      */
  42.     public OTSSimulationException(final String message, final Throwable cause)
  43.     {
  44.         super(message, cause);
  45.     }

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