Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BSONRuntimeError

Hierarchy

Index

Constructors

Properties

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

Type declaration

stackTraceLimit: number

Accessors

  • get name(): "BSONRuntimeError"
  • Returns "BSONRuntimeError"

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