ParameterException.java

  1. package org.opentrafficsim.base.parameters;

  2. /**
  3.  * Throwable for exceptions regarding parameters.
  4.  * <p>
  5.  * Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br>
  6.  * BSD-style license. See <a href="https://opentrafficsim.org/docs/license.html">OpenTrafficSim License</a>.
  7.  * </p>
  8.  * @author <a href="https://github.com/averbraeck">Alexander Verbraeck</a>
  9.  * @author <a href="https://github.com/wjschakel">Wouter Schakel</a>
  10.  */
  11. public class ParameterException extends Exception
  12. {

  13.     /** Serialization id. */
  14.     private static final long serialVersionUID = 20160325L;

  15.     /**
  16.      * Empty constructor.
  17.      */
  18.     public ParameterException()
  19.     {
  20.     }

  21.     /**
  22.      * Constructor with message.
  23.      * @param message String; Message.
  24.      */
  25.     public ParameterException(final String message)
  26.     {
  27.         super(message);
  28.     }

  29.     /**
  30.      * Constructor with cause.
  31.      * @param cause Throwable; Cause.
  32.      */
  33.     public ParameterException(final Throwable cause)
  34.     {
  35.         super(cause);
  36.     }

  37.     /**
  38.      * Constructor with message and cause.
  39.      * @param message String; Message.
  40.      * @param cause Throwable; Cause.
  41.      */
  42.     public ParameterException(final String message, final Throwable cause)
  43.     {
  44.         super(message, cause);
  45.     }

  46.     /**
  47.      * Constructor with message and cause.
  48.      * @param message String; Message.
  49.      * @param cause Throwable; Cause.
  50.      * @param enableSuppression boolean; Whether to enable suppression.
  51.      * @param writableStackTrace boolean; Whether or not the stack trace should be writable.
  52.      */
  53.     public ParameterException(final String message, final Throwable cause, final boolean enableSuppression,
  54.             final boolean writableStackTrace)
  55.     {
  56.         super(message, cause, enableSuppression, writableStackTrace);
  57.     }
  58. }