1 package org.opentrafficsim.kpi.sampling; 2 3 /** 4 * Exception thrown when sampling encounters an error. 5 * <p> 6 * Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved. <br> 7 * BSD-style license. See <a href="https://opentrafficsim.org/docs/license.html">OpenTrafficSim License</a>. 8 * </p> 9 * @author <a href="https://github.com/averbraeck">Alexander Verbraeck</a> 10 * @author <a href="https://tudelft.nl/staff/p.knoppers-1">Peter Knoppers</a> 11 * @author <a href="https://github.com/wjschakel">Wouter Schakel</a> 12 */ 13 14 public class SamplingException extends Exception 15 { 16 17 /** */ 18 private static final long serialVersionUID = 20160929L; 19 20 /** 21 * Constructor. 22 */ 23 public SamplingException() 24 { 25 } 26 27 /** 28 * Constructor. 29 * @param message String; String 30 */ 31 public SamplingException(final String message) 32 { 33 super(message); 34 } 35 36 /** 37 * Constructor. 38 * @param cause Throwable; Throwable 39 */ 40 public SamplingException(final Throwable cause) 41 { 42 super(cause); 43 } 44 45 /** 46 * Constructor. 47 * @param message String; String 48 * @param cause Throwable; Throwable 49 */ 50 public SamplingException(final String message, final Throwable cause) 51 { 52 super(message, cause); 53 } 54 55 /** 56 * Constructor. 57 * @param message String; description of the problem 58 * @param cause Throwable; the cause of this Exception 59 * @param enableSuppression boolean; whether or not suppression is enabled or disabled 60 * @param writableStackTrace boolean; whether or not the stack trace should be writable 61 */ 62 public SamplingException(final String message, final Throwable cause, final boolean enableSuppression, 63 final boolean writableStackTrace) 64 { 65 super(message, cause, enableSuppression, writableStackTrace); 66 } 67 68 }