UNPKG

@doegis/core

Version:

DOE GIS API

3 lines (1 loc) 458 B
const e="ProfileGenerationError";var o;!function(e){e.TooComplex="too-complex",e.InvalidGeometry="invalid-geometry",e.InvalidElevationInfo="invalid-elevation-info",e.ElevationQueryError="elevation-query-error"}(o||(o={}));class r extends Error{constructor(o){super("profile could not be generated"),this.cause=o,this.type=e}}function n(o){return o.type===e}export{r as ProfileGenerationError,o as ProfileGenerationErrorCause,n as isProfileGenerationError};