Class CollectionExistsError

Indicates that the referenced collection already exists, but the operation expected that it did not.

Hierarchy (view full)

Constructors

Properties

cause: undefined | Error

Specifies the underlying cause of this error, if one is available.

Specifies additional contextual information which is available for this error. Depending on the service that generated it.

message: string
name: string
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