Options
All
  • Public
  • Public/Protected
  • All
Menu

Errors related to contract resolution when some of its expectation are not fulfilled, see contract.

Those errors are for instance emitted by ModuleFlux when starting to process incoming messages: if the resolution fails, the processing is interrupt. The error is then exposed in Environment.errors$ (in flux applications this channel is plugged to a notifier).

Hierarchy

Index

Constructors

constructor

Properties

message

message: string

Readonly module

module: ModuleFlux

name

name: string

Optional stack

stack: string

Readonly status

status: ExpectationStatus<unknown>

Static Optional prepareStackTrace

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

Optional override for formatting stack traces

see

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

Type declaration

    • (err: Error, stackTraces: CallSite[]): any
    • Parameters

      • err: Error
      • stackTraces: CallSite[]

      Returns any

Static stackTraceLimit

stackTraceLimit: number

Methods

Static 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