kysely
Version:
Type safe SQL query builder
19 lines (18 loc) • 571 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.isNoResultErrorConstructor = exports.NoResultError = void 0;
class NoResultError extends Error {
/**
* The operation node tree of the query that was executed.
*/
node;
constructor(node) {
super('no result');
this.node = node;
}
}
exports.NoResultError = NoResultError;
function isNoResultErrorConstructor(fn) {
return Object.prototype.hasOwnProperty.call(fn, 'prototype');
}
exports.isNoResultErrorConstructor = isNoResultErrorConstructor;
;