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

Method __init__

src/mcp_cli/commands/exceptions.py:26–38  ·  view source on GitHub ↗

Initialize invalid parameter error. Args: message: Error message parameter: Parameter name that is invalid command: Command name

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

Source from the content-addressed store, hash-verified

24 """Invalid parameter provided to command."""
25
26 def __init__(
27 self, message: str, parameter: str | None = None, command: str | None = None
28 ):
29 """
30 Initialize invalid parameter error.
31
32 Args:
33 message: Error message
34 parameter: Parameter name that is invalid
35 command: Command name
36 """
37 self.parameter = parameter
38 super().__init__(message, command)
39
40
41class CommandExecutionError(CommandError):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected