Class CollectionAlreadyExistsError

An exception thrown when an operation that expects a collection not to exist is attempted on a collection that already exists.

Field

keyspace - The keyspace where the collection already exists

Field

collectionName - The name of the collection that already exists

Hierarchy (view full)

Constructors

Properties

collectionName: string

The name of the collection that already exists

keyspace: string

The keyspace where the collection already exists

message: string
name: string
namespace: string

The keyspace where the collection already exists

This is now a deprecated alias for the strictly equivalent CollectionAlreadyExistsError.keyspace, and will be removed in an upcoming major version.

https://docs.datastax.com/en/astra-db-serverless/api-reference/client-versions.html#version-1-5

Deprecated

stack?: string
prepareStackTrace?: ((err, stackTraces) => any)

Optional override for formatting stack traces

Type declaration

    • (err, stackTraces): any
    • Parameters

      • err: Error
      • stackTraces: CallSite[]

      Returns any

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void