Class ProbabilityException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.opentrafficsim.core.distributions.ProbabilityException
- All Implemented Interfaces:
java.io.Serializable
public class ProbabilityException
extends java.lang.Exception
Exception thrown when provided probabilities or frequencies are invalid. Negative probabilities or frequencies are invalid. A
set of probabilities or frequencies that adds up to 0 causes this exception when the draw method is called.
Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Version:
- $Revision$, $LastChangedDate$, by $Author$, initial version Mar 1, 2016
- Author:
- Peter Knoppers
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description ProbabilityException()ProbabilityException(java.lang.String message)ProbabilityException(java.lang.String message, java.lang.Throwable cause)ProbabilityException(java.lang.String message, java.lang.Throwable cause, boolean enableSuppression, boolean writableStackTrace)ProbabilityException(java.lang.Throwable cause) -
Method Summary
-
Constructor Details
-
ProbabilityException
public ProbabilityException() -
ProbabilityException
public ProbabilityException(java.lang.String message)- Parameters:
message- String; String
-
ProbabilityException
public ProbabilityException(java.lang.Throwable cause)- Parameters:
cause- Throwable; Throwable
-
ProbabilityException
public ProbabilityException(java.lang.String message, java.lang.Throwable cause)- Parameters:
message- String; Stringcause- Throwable; Throwable
-
ProbabilityException
public ProbabilityException(java.lang.String message, java.lang.Throwable cause, boolean enableSuppression, boolean writableStackTrace)- Parameters:
message- String; description of the problemcause- Throwable; the cause of this ValueRuntimeExceptionenableSuppression- boolean; whether or not suppression is enabled or disabledwritableStackTrace- boolean; whether or not the stack trace should be writable
-