public class PropertyException 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.
$LastChangedDate: 2016-03-29 03:26:55 +0200 (Tue, 29 Mar 2016) $, @version $Revision: 1866 $, by $Author: averbraeck $,
initial version 18 dec. 2014
Constructor and Description |
---|
PropertyException()
Construct a new IncompatiblePropertyException.
|
PropertyException(String message)
Construct a new IncompatiblePropertyException.
|
PropertyException(String message,
Throwable cause)
Construct a new IncompatiblePropertyException.
|
PropertyException(String message,
Throwable cause,
boolean enableSuppression,
boolean writableStackTrace)
Construct a new IncompatiblePropertyException.
|
PropertyException(Throwable cause)
Construct a new IncompatiblePropertyException.
|
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 PropertyException()
public PropertyException(String message)
message
- String; description of the problempublic PropertyException(Throwable cause)
cause
- Throwable; the cause of this ValueExceptionpublic PropertyException(String message, Throwable cause)
message
- String; description of the problemcause
- Throwable; the cause of this ValueExceptionpublic PropertyException(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 PropertyException
condition
- the condition to check; an exception will be thrown if this is truemessage
- the message to use in the exceptionPropertyException
- the exception to throw on true conditionCopyright © 2014–2016 Delft University of Technology. All rights reserved.