Class CollectionDeleteManyError

Represents an error that occurred during a deleteMany operation (which is, generally, paginated).

Contains the number of documents that were successfully deleted, as well as the cumulative errors that occurred during the operation.

Field

message - A human-readable message describing the first error

Field

errorDescriptors - A list of error descriptors representing the individual errors returned by the API

Field

detailedErrorDescriptors - A list of errors 1:1 with the number of errorful API requests made to the server.

Field

partialResult - The partial result of the DeleteMany operation that was performed

Hierarchy (view full)

Constructors

Properties

cause: Error

The error that caused the operation to fail.

message: string
name: string = 'CollectionDeleteManyError'

The name of the error. This is always 'DeleteManyError'.

The partial result of the DeleteMany operation that was performed. This is always defined, and is the result of the operation up to the point of the first error.

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