public class OperationalPlanException 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 |
|---|
OperationalPlanException()
Construct an operational plan exception.
|
OperationalPlanException(String message) |
OperationalPlanException(String message,
Throwable cause) |
OperationalPlanException(String message,
Throwable cause,
boolean enableSuppression,
boolean writableStackTrace) |
OperationalPlanException(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 OperationalPlanException()
public OperationalPlanException(String message)
message - exception messagepublic OperationalPlanException(Throwable cause)
cause - exception that triggered this exceptionpublic OperationalPlanException(String message, Throwable cause)
message - exception messagecause - exception that triggered this exceptionpublic OperationalPlanException(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 OperationalPlanException
condition - the condition to check; an exception will be thrown if this is truemessage - the message to use in the exceptionOperationalPlanException - the exception to throw on true conditionCopyright © 2014–2016 Delft University of Technology. All rights reserved.