@datastax/astra-db-ts
Version:
Data API TypeScript client
28 lines (27 loc) • 857 B
JavaScript
;
// Copyright Datastax, Inc
// SPDX-License-Identifier: Apache-2.0
Object.defineProperty(exports, "__esModule", { value: true });
exports.CursorError = void 0;
const errors_js_1 = require("../../documents/errors.js");
class CursorError extends errors_js_1.DataAPIError {
constructor(message, cursor) {
super(message);
Object.defineProperty(this, "cursor", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
Object.defineProperty(this, "state", {
enumerable: true,
configurable: true,
writable: true,
value: void 0
});
this.name = 'CursorError';
this.cursor = cursor;
this.state = cursor.state;
}
}
exports.CursorError = CursorError;