Class CollectionAlreadyExistsError

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

Field

namespace - The namespace 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

message: string
name: string
namespace: string

The namespace where the collection already exists

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