Skip to content

InjectionError

@tsed/di

Usage

typescript
import { InjectionError } from "@tsed/di";

See /packages/di/src/types/common/errors/InjectionError.ts.

Overview

ts
class InjectionError extends Error {
    name: string;
    tokens: TokenProvider[];
    origin: any;
    constructor(token: TokenProvider, origin?: any);
    static throwInjectorError(token: any, currentDependency: any, error: any): void;
}

name

ts
name: string;

tokens

ts
tokens: TokenProvider[];

origin

ts
origin: any;

static throwInjectorError

ts
static throwInjectorError(token: any, currentDependency: any, error: any): void;

Released under the MIT License.