Package org.opentrafficsim.core.network
Class NetworkException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.opentrafficsim.core.network.NetworkException
-
- All Implemented Interfaces:
Serializable
public class NetworkException extends Exception
Exception thrown when network topology is inconsistent.Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
$LastChangedDate: 2020-01-23 11:14:19 +0100 (Thu, 23 Jan 2020) $, @version $Revision: 6010 $, by $Author: averbraeck $, initial version Aug 22, 2014
BSD-style license. See OpenTrafficSim License.- Author:
- Alexander Verbraeck, Peter Knoppers
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NetworkException()Construct a new NetworkException with default values.NetworkException(String message)Construct a new NetworkException with specific message.NetworkException(String message, Throwable cause)Construct a new NetworkException with specific message and a Throwable.NetworkException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)Construct a new NetworkException with a specific message, throwable and specify whether suppression is enabled and wether the stack trace should be writable.NetworkException(Throwable cause)Construct a new NetworkException from a Throwable.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
NetworkException
public NetworkException()
Construct a new NetworkException with default values.
-
NetworkException
public NetworkException(String message)
Construct a new NetworkException with specific message.- Parameters:
message- String; the message
-
NetworkException
public NetworkException(Throwable cause)
Construct a new NetworkException from a Throwable.- Parameters:
cause- Throwable; the Throwable
-
NetworkException
public NetworkException(String message, Throwable cause)
Construct a new NetworkException with specific message and a Throwable.- Parameters:
message- String; the messagecause- Throwable; the Throwable
-
NetworkException
public NetworkException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)
Construct a new NetworkException with a specific message, throwable and specify whether suppression is enabled and wether the stack trace should be writable.- Parameters:
message- String; description of the problemcause- Throwable; the cause of this NetworkExceptionenableSuppression- boolean; whether or not suppression is enabled or disabledwritableStackTrace- boolean; whether or not the stack trace should be writable
-
-