Options
All
  • Public
  • Public/Protected
  • All
Menu

The MongoBackError that happens because of an operation with MongoDB

Hierarchy

Index

Constructors

constructor

  • new DatabaseError(message?: string, triggerError?: Error): DatabaseError

Properties

__proto__

__proto__: Error

message

message: string

name

name: string

Optional prepareStackTrace

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

Optional override for formatting stack traces

see

https://github.com/v8/v8/wiki/Stack%20Trace%20API#customizing-stack-traces

Optional stack

stack: undefined | string

stackTraceLimit

stackTraceLimit: number

triggerError

triggerError: null | Error

The error that triggered the problem

Private Readonly Static DEFAULT_MESSAGE

DEFAULT_MESSAGE: "Error on an operation with MongoDB" = 'Error on an operation with MongoDB'

Methods

captureStackTrace

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

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc