mcp_registry_client.error_handling
Error handling utilities for the MCP registry client.
handle_command_error(exc, context='')
Handle command errors with consistent messaging and logging.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
exc
|
Exception
|
The exception that occurred |
required |
context
|
str
|
Additional context about the operation that failed |
''
|
Returns:
| Type | Description |
|---|---|
int
|
Appropriate exit code for the error type |