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