node-red-contrib-tak-registration
Version:
A Node-RED node to register to TAK and to help wrap files as datapackages to send to TAK
14 lines (12 loc) • 399 B
JavaScript
import Coordinate from './Coordinate'
import RuntimeException from '../../../../java/lang/RuntimeException'
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
}
}