DuplicateProviderError
Defined in: packages/di-craft/src/core/registry/errors.ts:6
Error thrown when registering a provider for an already registered token.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new DuplicateProviderError(
tokenName):DuplicateProviderError
Defined in: packages/di-craft/src/core/registry/errors.ts:7
Parameters
Section titled “Parameters”tokenName
Section titled “tokenName”string
Returns
Section titled “Returns”DuplicateProviderError
Overrides
Section titled “Overrides”Properties
Section titled “Properties”cause?
Section titled “cause?”
optionalcause?:unknown
Defined in: node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2022.error.d.ts:24
Inherited from
Section titled “Inherited from”message
Section titled “message”message:
string
Defined in: node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1075
Inherited from
Section titled “Inherited from”name:
string
Defined in: node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1074
Inherited from
Section titled “Inherited from”stack?
Section titled “stack?”
optionalstack?:string
Defined in: node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1076