math.geom2d.line
Class DegeneratedLine2DException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
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
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 |
DegeneratedLine2DException
public DegeneratedLine2DException(java.lang.String msg,
LinearShape2D line)
- Parameters:
msg
- the error messageline
- the degenerated line
DegeneratedLine2DException
public DegeneratedLine2DException(LinearShape2D line)
- Parameters:
line
- the degenerated line
getLine
public LinearShape2D getLine()