Package org.djutils.draw
Class DrawException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.djutils.draw.DrawException
-
- All Implemented Interfaces:
Serializable
public class DrawException extends Exception
DrawException is the root exception for drawing exceptions.Copyright (c) 2020-2021 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DrawException()
Create an empty drawing exception.DrawException(String message)
Create a drawing exception with a custom message.DrawException(String message, Throwable cause)
Create a drawing exception with a custom message and an underlying cause.DrawException(Throwable cause)
Create a 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 Detail
-
DrawException
public DrawException()
Create an empty drawing exception.
-
DrawException
public DrawException(String message)
Create a drawing exception with a custom message.- Parameters:
message
- String; the custom message.
-
DrawException
public DrawException(Throwable cause)
Create a drawing exception with an underlying cause.- Parameters:
cause
- Throwable; the cause of this exception to be thrown
-
-