UNPKG

@datastax/astra-db-ts

Version:
24 lines (23 loc) 710 B
// Copyright Datastax, Inc // SPDX-License-Identifier: Apache-2.0 import { DataAPIError } from '../../documents/errors.js'; export class CursorError extends 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; } }