Overview
Provider errors are thrown by the FrontMCP dependency injection system. They cover unregistered providers, scope mismatches, construction failures, circular dependencies, and plugin dependency issues. All provider errors are internal errors.Error Reference
ProviderNotRegisteredError
Thrown when a provider token is not found in the registry.| Property | Type | Value |
|---|---|---|
code | string | PROVIDER_NOT_REGISTERED |
statusCode | number | 500 |
isPublic | boolean | false |
ProviderScopeMismatchError
Thrown when a provider’s scope doesn’t match the registry it’s being resolved in.| Property | Type | Value |
|---|---|---|
code | string | PROVIDER_SCOPE_MISMATCH |
statusCode | number | 500 |
isPublic | boolean | false |
ProviderNotInstantiatedError
Thrown when a provider is expected to be instantiated but hasn’t been created yet.| Property | Type | Value |
|---|---|---|
code | string | PROVIDER_NOT_INSTANTIATED |
statusCode | number | 500 |
isPublic | boolean | false |
DependencyCycleError
Thrown when a circular dependency is detected in the provider graph.| Property | Type | Value |
|---|---|---|
code | string | DEPENDENCY_CYCLE |
statusCode | number | 500 |
isPublic | boolean | false |
ProviderConstructionError
Thrown when constructing a provider instance fails.| Property | Type | Value |
|---|---|---|
code | string | PROVIDER_CONSTRUCTION_FAILED |
statusCode | number | 500 |
isPublic | boolean | false |
originalError | Error | undefined | The underlying cause |
ProviderDependencyError
Thrown when a provider dependency cannot be resolved.| Property | Type | Value |
|---|---|---|
code | string | PROVIDER_DEPENDENCY_ERROR |
statusCode | number | 500 |
isPublic | boolean | false |
ProviderScopedAccessError
Thrown when a scoped provider is accessed from the wrong scope.| Property | Type | Value |
|---|---|---|
code | string | PROVIDER_SCOPED_ACCESS |
statusCode | number | 500 |
isPublic | boolean | false |
ProviderNotAvailableError
Thrown when a provider is not available in the current context.| Property | Type | Value |
|---|---|---|
code | string | PROVIDER_NOT_AVAILABLE |
statusCode | number | 500 |
isPublic | boolean | false |
PluginDependencyError
Thrown when a plugin dependency cannot be resolved.| Property | Type | Value |
|---|---|---|
code | string | PLUGIN_DEPENDENCY_ERROR |
statusCode | number | 500 |
isPublic | boolean | false |
InvalidDependencyScopeError
Thrown when a dependency has an invalid scope configuration.| Property | Type | Value |
|---|---|---|
code | string | INVALID_DEPENDENCY_SCOPE |
statusCode | number | 500 |
isPublic | boolean | false |
InvalidPluginScopeError
Thrown when a plugin withscope='server' is used in a standalone app, which is not allowed.
| Property | Type | Value |
|---|---|---|
code | string | INVALID_PLUGIN_SCOPE |
statusCode | number | 500 |
isPublic | boolean | false |