@mkerkstra/jsts-cjs
Version:
A CommonJS fork of JSTS: A JavaScript library of spatial predicates and functions for processing geometry
14 lines (12 loc) • 405 B
JavaScript
import Coordinate from './Coordinate.js'
import RuntimeException from '../../../../java/lang/RuntimeException.js'
export default class TopologyException extends RuntimeException {
constructor(msg, pt) {
super(pt ? msg + ' [ ' + pt + ' ]' : msg)
this.pt = pt ? new Coordinate(pt) : undefined
this.name = Object.keys({ TopologyException })[0]
}
getCoordinate() {
return this.pt
}
}