Package org.djutils.draw
Class DegenerateLineException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.djutils.draw.DrawRuntimeException
org.djutils.draw.DegenerateLineException
- All Implemented Interfaces:
Serializable
DegenerateLineException is a special type of DrawRuntimeException, that is thrown if a line or line segment is constructed or
simplified to less than two points.
Copyright (c) 2020-2024 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUTILS License.
- Author:
- Alexander Verbraeck, Peter Knoppers
- See Also:
-
Constructor Summary
ConstructorDescriptionCreate an empty runtime drawing exception.DegenerateLineException
(String message) Create a runtime drawing exception with a custom message.DegenerateLineException
(String message, Throwable cause) Create a runtime drawing exception with a custom message and an underlying cause.DegenerateLineException
(Throwable cause) Create a runtime drawing 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
-
DegenerateLineException
public DegenerateLineException()Create an empty runtime drawing exception. -
DegenerateLineException
Create a runtime drawing exception with a custom message.- Parameters:
message
- String; the custom message.
-
DegenerateLineException
Create a runtime drawing exception with an underlying cause.- Parameters:
cause
- Throwable; the cause of this exception to be thrown
-
DegenerateLineException
Create a runtime drawing exception with a custom message and an underlying cause.- Parameters:
message
- String; the custom messagecause
- Throwable; the cause of this exception to be thrown
-