math.geom2d.line
Class DegeneratedLine2DException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by math.geom2d.line.DegeneratedLine2DException
All Implemented Interfaces:
java.io.Serializable

public class DegeneratedLine2DException
extends java.lang.RuntimeException

A degenerated line, whose direction vector is undefined, had been encountered. This kind of exception can occur during polygon or polylines algorithms, when polygons have multiple vertices.

Since:
0.9.0
Author:
dlegland
See Also:
Serialized Form

Constructor Summary
DegeneratedLine2DException(LinearShape2D line)
           
DegeneratedLine2DException(java.lang.String msg, LinearShape2D line)
           
 
Method Summary
 LinearShape2D getLine()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DegeneratedLine2DException

public DegeneratedLine2DException(java.lang.String msg,
                                  LinearShape2D line)
Parameters:
msg - the error message
line - the degenerated line

DegeneratedLine2DException

public DegeneratedLine2DException(LinearShape2D line)
Parameters:
line - the degenerated line
Method Detail

getLine

public LinearShape2D getLine()