Class MongoCleanerCleanError

The error thrown when the MongoDB is not totally cleaned

Hierarchy

Constructors

Properties

Constructors

  • 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

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

triggerError: null | Error

The error that happened

Generated using TypeDoc