Options
All
  • Public
  • Public/Protected
  • All
Menu

The error thrown when the MongoDB is not totally cleaned

Hierarchy

Index

Constructors

  • new MongoCleanerCleanError(message?: string, database?: string, collection?: string, triggerError?: Error): MongoCleanerCleanError
  • The constructor of the MongoCleanerError class.

    Parameters

    • Optional message: string

      The message of the error.

    • Optional database: string

      The database that was attempted to be cleaned.

    • Optional collection: string

      The collection that was attempted to be cleaned.

    • Optional triggerError: Error

      The original error that triggered this error.

    Returns MongoCleanerCleanError

Properties

__proto__: Error
collection: null | string

The collection that cannot be dropped or emptied. Null, if the problem is with a database

database: null | string

The database that cannot be dropped or whose collection cannot be dropped/emptied

message: string
name: string
stack?: string
triggerError: null | Error

The error that happened

prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

Optional override for formatting stack traces

Type declaration

stackTraceLimit: number

Methods

  • captureStackTrace(targetObject: object, constructorOpt?: Function): void
  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc