Options
All
  • Public
  • Public/Protected
  • All
Menu

The error of a problem with mongo-cleaner when connecting to MongoDB

Hierarchy

Index

Constructors

  • new MongoCleanerConnectionError(message?: string, uri?: string, connectionOptions?: MongoClientOptions, triggerError?: Error): MongoCleanerConnectionError
  • The constructor of the MongoCleanerConnectionOptions class.

    Parameters

    • Optional message: string

      The message of the error.

    • Optional uri: string

      The uri of the MongoDB connection that caused the error.

    • Optional connectionOptions: MongoClientOptions

      The options of the MongoDB connection that caused the error.

    • Optional triggerError: Error

      The original error that triggered this error.

    Returns MongoCleanerConnectionError

Properties

__proto__: Error
connectionOptions: null | MongoClientOptions

The MongoClient connection-options of the failed connection

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

The error that happened

uri: null | string

The uri of the failed connection

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