Options
All
  • Public
  • Public/Protected
  • All
Menu

An error representing a failure of an individual provider.

This error class has special meaning to the chain method. If a provider in the chain is rejected with an error, the chain will only proceed to the next provider if the value of the tryNextLink property on the error is truthy. This allows individual providers to halt the chain and also ensures the chain will stop if an entirely unexpected error is encountered.

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

  • new ProviderError(message: string, tryNextLink?: boolean): ProviderError

Properties

message

message: string

name

name: string = "ProviderError"

Optional stack

stack: string

Readonly tryNextLink

tryNextLink: boolean

Static Error

Error: ErrorConstructor

Methods

Static from