Class DegenerateLineException

All Implemented Interfaces:
Serializable

public class DegenerateLineException extends DrawRuntimeException
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 Details

    • DegenerateLineException

      public DegenerateLineException()
      Create an empty runtime drawing exception.
    • DegenerateLineException

      public DegenerateLineException(String message)
      Create a runtime drawing exception with a custom message.
      Parameters:
      message - String; the custom message.
    • DegenerateLineException

      public DegenerateLineException(Throwable cause)
      Create a runtime drawing exception with an underlying cause.
      Parameters:
      cause - Throwable; the cause of this exception to be thrown
    • DegenerateLineException

      public DegenerateLineException(String message, Throwable cause)
      Create a runtime drawing exception with a custom message and an underlying cause.
      Parameters:
      message - String; the custom message
      cause - Throwable; the cause of this exception to be thrown