@liberation-data/drivine
Version:
Best and fastest graph database client for TypeScript / Node.js. Provides a level of abstraction for building highly scalable applications, without compromising architectural integrity
20 lines • 596 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DrivineError = void 0;
class DrivineError extends Error {
static withRootCause(cause, spec) {
return new DrivineError(undefined, cause, spec);
}
constructor(message, rootCause, spec) {
if (!message && rootCause && rootCause.message) {
super(rootCause.message);
}
else {
super(message);
}
this.rootCause = rootCause;
this.spec = spec;
}
}
exports.DrivineError = DrivineError;
//# sourceMappingURL=DrivineError.js.map