/**
* File: DegeneratedLine2DException.java
* Project: javaGeom
*
* Distributed under the LGPL License.
*
*/
package math.geom2d.line;
/**
* 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.
* @author dlegland
* @since 0.9.0
*/
public class DegeneratedLine2DException extends RuntimeException {
/**
*
*/
private static final long serialVersionUID = 1L;
protected LinearShape2D line;
/**
* @param msg the error message
* @param line the degenerated line
*/
public DegeneratedLine2DException(String msg, LinearShape2D line) {
super(msg);
this.line = line;
}
/**
* @param line the degenerated line
*/
public DegeneratedLine2DException(LinearShape2D line) {
super();
this.line = line;
}
public LinearShape2D getLine() {
return line;
}
}
Ads help maintain this website.