MCPcopy Create free account
hub / github.com/IBM/mcp-cli / __init__

Method __init__

src/mcp_cli/commands/exceptions.py:10–20  ·  view source on GitHub ↗

Initialize command error. Args: message: Error message command: Command name that failed (optional)

(self, message: str, command: str | None = None)

Source from the content-addressed store, hash-verified

8 """Base exception for all command errors."""
9
10 def __init__(self, message: str, command: str | None = None):
11 """
12 Initialize command error.
13
14 Args:
15 message: Error message
16 command: Command name that failed (optional)
17 """
18 self.message = message
19 self.command = command
20 super().__init__(message)
21
22
23class InvalidParameterError(CommandError):

Callers 3

__init__Method · 0.45
__init__Method · 0.45
__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected