Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BSONError

Hierarchy

Index

Constructors

  • Parameters

    • message: string

    Returns BSONError

Properties

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

Type declaration

stackTraceLimit: number

Accessors

  • get name(): string
  • Returns string

Methods

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

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

  • isBSONError(value: unknown): value is BSONError
  • Parameters

    • value: unknown

      any javascript value that needs type checking

    Returns value is BSONError

Generated using TypeDoc