public class ProbabilityException extends Exception
Copyright (c) 2013-2015 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
Constructor and Description |
---|
ProbabilityException() |
ProbabilityException(String message) |
ProbabilityException(String message,
Throwable cause) |
ProbabilityException(String message,
Throwable cause,
boolean enableSuppression,
boolean writableStackTrace) |
ProbabilityException(Throwable cause) |
Modifier and Type | Method and Description |
---|---|
static void |
failIf(boolean condition,
String message)
Throw an Exception if a condition is met, e.g.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ProbabilityException()
public ProbabilityException(String message)
message
- Stringpublic ProbabilityException(Throwable cause)
cause
- Throwablepublic ProbabilityException(String message, Throwable cause)
message
- Stringcause
- Throwablepublic ProbabilityException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)
message
- String; description of the problemcause
- Throwable; the cause of this ValueExceptionenableSuppression
- boolean; whether or not suppression is enabled or disabledwritableStackTrace
- boolean; whether or not the stack trace should be writablepublic static void failIf(boolean condition, String message) throws ProbabilityException
condition
- the condition to check; an exception will be thrown if this is truemessage
- the message to use in the exceptionProbabilityException
- the exception to throw on true conditionCopyright © 2014–2016 Delft University of Technology. All rights reserved.