1 package org.opentrafficsim.kpi.sampling;
2
3 /**
4 * Exception thrown when sampling encounters an error.
5 * <p>
6 * Copyright (c) 2013-2020 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/node/13">OpenTrafficSim License</a>.
8 * <p>
9 * @version $Revision$, $LastChangedDate$, by $Author$, initial version Sep 29, 2016 <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 * @author <a href="http://www.transport.citg.tudelft.nl">Wouter Schakel</a>
13 */
14
15 public class SamplingException extends Exception
16 {
17
18 /** */
19 private static final long serialVersionUID = 20160929L;
20
21 /**
22 *
23 */
24 public SamplingException()
25 {
26 }
27
28 /**
29 * @param message String; String
30 */
31 public SamplingException(final String message)
32 {
33 super(message);
34 }
35
36 /**
37 * @param cause Throwable; Throwable
38 */
39 public SamplingException(final Throwable cause)
40 {
41 super(cause);
42 }
43
44 /**
45 * @param message String; String
46 * @param cause Throwable; Throwable
47 */
48 public SamplingException(final String message, final Throwable cause)
49 {
50 super(message, cause);
51 }
52
53 /**
54 * @param message String; description of the problem
55 * @param cause Throwable; the cause of this Exception
56 * @param enableSuppression boolean; whether or not suppression is enabled or disabled
57 * @param writableStackTrace boolean; whether or not the stack trace should be writable
58 */
59 public SamplingException(final String message, final Throwable cause, final boolean enableSuppression,
60 final boolean writableStackTrace)
61 {
62 super(message, cause, enableSuppression, writableStackTrace);
63 }
64
65 }