public class NetworkException 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 Aug 22, 2014
| Constructor and Description |
|---|
NetworkException() |
NetworkException(String message) |
NetworkException(String message,
Throwable cause) |
NetworkException(String message,
Throwable cause,
boolean enableSuppression,
boolean writableStackTrace) |
NetworkException(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 NetworkException()
public NetworkException(String message)
message - Stringpublic NetworkException(Throwable cause)
cause - Throwablepublic NetworkException(String message, Throwable cause)
message - Stringcause - Throwablepublic NetworkException(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 NetworkException
condition - the condition to check; an exception will be thrown if this is truemessage - the message to use in the exceptionNetworkException - the exception to throw on true conditionCopyright © 2014–2016 Delft University of Technology. All rights reserved.