This error is thrown when attempting to create a resource such as an index or collection with a name that is already in use.

Hierarchy

Constructors

Properties

cause?: Error

The underlying error, if any.

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

Type declaration

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void