Skip to main content
Version: 0.1.2

Class: InjectionError

Imported from @react-logic/di

Generic injection failure raised by the default adapter — typically when a provider is malformed (no useValue/useClass/useFactory). The more specific subclasses below cover the common failure modes; catch this base class to handle any DI-origin error uniformly.

Extends

  • Error

Constructors

Constructor

new InjectionError(message, injectorName): InjectionError

Parameters

message

string

injectorName

string

Returns

InjectionError

Overrides

Error.constructor