Package org.opentrafficsim.base
Class OtsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.opentrafficsim.base.OtsException
- All Implemented Interfaces:
Serializable
OtsException is a generic exception for the OTS project.
Copyright (c) 2013-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See OpenTrafficSim License.
- Author:
- Alexander Verbraeck
- See Also:
-
Constructor Summary
ConstructorDescriptionCreate an exception without a message.OtsException
(String message) Create an exception with a message.OtsException
(String message, Throwable cause) Create an exception with an underlying cause and a message.OtsException
(Throwable cause) Create an exception with an underlying cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
OtsException
public OtsException()Create an exception without a message. -
OtsException
Create an exception with a message.- Parameters:
message
- String; the message to include in the exception
-
OtsException
Create an exception with an underlying cause.- Parameters:
cause
- Throwable; the underlying cause of the exception
-
OtsException
Create an exception with an underlying cause and a message.- Parameters:
message
- String; the message to include in the exceptioncause
- Throwable; the underlying cause of the exception
-