Package org.opentrafficsim.base
Class OtsRuntimeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.opentrafficsim.base.OtsRuntimeException
- All Implemented Interfaces:
Serializable
OtsRuntimeException is a generic runtime exception for the OTS project. Runtime exceptions do ot have to be declared in the
header of the method or constructor.
Copyright (c) 2022-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.OtsRuntimeException
(String message) Create an exception with a message.OtsRuntimeException
(String message, Throwable cause) Create an exception with an underlying cause and a message.OtsRuntimeException
(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
-
OtsRuntimeException
public OtsRuntimeException()Create an exception without a message. -
OtsRuntimeException
Create an exception with a message.- Parameters:
message
- String; the message to include in the exception
-
OtsRuntimeException
Create an exception with an underlying cause.- Parameters:
cause
- Throwable; the underlying cause of the exception
-
OtsRuntimeException
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
-