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

Method __init__

src/mcp_cli/commands/exceptions.py:44–56  ·  view source on GitHub ↗

Initialize command execution error. Args: message: Error message command: Command name that failed cause: Original exception that caused this error

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

Source from the content-addressed store, hash-verified

42 """Command execution failed."""
43
44 def __init__(
45 self, message: str, command: str | None = None, cause: Exception | None = None
46 ):
47 """
48 Initialize command execution error.
49
50 Args:
51 message: Error message
52 command: Command name that failed
53 cause: Original exception that caused this error
54 """
55 self.cause = cause
56 super().__init__(message, command)
57
58
59class CommandNotFoundError(CommandError):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected