Errors
Registry Errors
Errors for registry lookups, dependency resolution, and entry validation.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Errors for registry lookups, dependency resolution, and entry validation.
| Property | Type | Value |
|---|---|---|
code | string | REGISTRY_DEFINITION_NOT_FOUND |
statusCode | number | 500 |
isPublic | boolean | false |
new RegistryDefinitionNotFoundError(registryName: string, tokenName: string)
import { RegistryDefinitionNotFoundError } from '@frontmcp/sdk';
throw new RegistryDefinitionNotFoundError('ToolRegistry', 'my_tool');
// "[ToolRegistry] Definition not found for token "my_tool""
| Property | Type | Value |
|---|---|---|
code | string | REGISTRY_GRAPH_ENTRY_NOT_FOUND |
statusCode | number | 500 |
isPublic | boolean | false |
new RegistryGraphEntryNotFoundError(registryName: string, tokenName: string)
| Property | Type | Value |
|---|---|---|
code | string | REGISTRY_DEPENDENCY_NOT_REGISTERED |
statusCode | number | 500 |
isPublic | boolean | false |
new RegistryDependencyNotRegisteredError(entityType: string, tokenName: string, depName: string)
import { RegistryDependencyNotRegisteredError } from '@frontmcp/sdk';
throw new RegistryDependencyNotRegisteredError('Tool', 'my_tool', 'DatabaseService');
// "Tool "my_tool" depends on "DatabaseService", which is not registered"
| Property | Type | Value |
|---|---|---|
code | string | INVALID_REGISTRY_KIND |
statusCode | number | 500 |
isPublic | boolean | false |
new InvalidRegistryKindError(entityType: string, kind?: string)
| Property | Type | Value |
|---|---|---|
code | string | NAME_DISAMBIGUATION_FAILED |
statusCode | number | 500 |
isPublic | boolean | false |
new NameDisambiguationError(candidate: string, maxAttempts: number)
import { NameDisambiguationError } from '@frontmcp/sdk';
throw new NameDisambiguationError('my_tool', 100);
// "Failed to disambiguate name "my_tool" after 100 attempts"
| Property | Type | Value |
|---|---|---|
code | string | ENTRY_VALIDATION_FAILED |
statusCode | number | 500 |
isPublic | boolean | false |
new EntryValidationError(entryType: string, details: string)
| Property | Type | Value |
|---|---|---|
code | string | FLOW_NOT_REGISTERED |
statusCode | number | 500 |
isPublic | boolean | false |
new FlowNotRegisteredError(flowName: string)
import { FlowNotRegisteredError } from '@frontmcp/sdk';
throw new FlowNotRegisteredError('tools:call-tool');
// "Flow "tools:call-tool" is not registered"
| Property | Type | Value |
|---|---|---|
code | string | UNSUPPORTED_HOOK_OWNER_KIND |
statusCode | number | 500 |
isPublic | boolean | false |
new UnsupportedHookOwnerKindError(kind: string)
| Property | Type | Value |
|---|---|---|
code | string | INVALID_HOOK_FLOW |
statusCode | number | 500 |
isPublic | boolean | false |
new InvalidHookFlowError(message: string)
import { InvalidHookFlowError } from '@frontmcp/sdk';
throw new InvalidHookFlowError('Resource "MyResource" has hooks for unsupported flows: tools:call-tool');