UNPKG

@jplorg/jpl

Version:
18 lines (17 loc) 457 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; /** Generic JPL error type */ class JPLError extends Error { /** Detect whether the provided value is an instance of this error or one of its subclasses */ static is(value) { return value instanceof this; } constructor(message, name = 'JPLError') { super(message); this.name = name; } } var _default = exports.default = JPLError;