public class OTSSimulationException 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 |
|---|
OTSSimulationException()
Construct an operational plan exception.
|
OTSSimulationException(String message) |
OTSSimulationException(String message,
Throwable cause) |
OTSSimulationException(String message,
Throwable cause,
boolean enableSuppression,
boolean writableStackTrace) |
OTSSimulationException(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, toStringpublic OTSSimulationException()
public OTSSimulationException(String message)
message - exception messagepublic OTSSimulationException(Throwable cause)
cause - exception that triggered this exceptionpublic OTSSimulationException(String message, Throwable cause)
message - exception messagecause - exception that triggered this exceptionpublic OTSSimulationException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)
message - exception messagecause - exception that triggered this exceptionenableSuppression - whether or not suppression is enabled or disabledwritableStackTrace - whether or not the stack trace should be writablepublic static void failIf(boolean condition,
String message)
throws OTSSimulationException
condition - the condition to check; an exception will be thrown if this is truemessage - the message to use in the exceptionOTSSimulationException - the exception to throw on true conditionCopyright © 2014–2016 Delft University of Technology. All rights reserved.