OperationalPlanException.java

  1. package org.opentrafficsim.core.gtu.plan.operational;

  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-2020 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 OperationalPlanException extends Exception
  14. {
  15.     /** */
  16.     private static final long serialVersionUID = 20151223L;

  17.     /**
  18.      * Construct an operational plan exception.
  19.      */
  20.     public OperationalPlanException()
  21.     {
  22.     }

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

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

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

  45.     /**
  46.      * @param message String; exception message
  47.      * @param cause Throwable; exception that triggered 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 OperationalPlanException(final String message, final Throwable cause, final boolean enableSuppression,
  52.             final boolean writableStackTrace)
  53.     {
  54.         super(message, cause, enableSuppression, writableStackTrace);
  55.     }
  56. }