MCPcopy Index your code
hub / github.com/github/copilot-sdk / StopError

Class StopError

python/copilot/client.py:466–485  ·  view source on GitHub ↗

Error that occurred during client stop cleanup.

Source from the content-addressed store, hash-verified

464
465@dataclass
466class StopError(Exception):
467 """Error that occurred during client stop cleanup."""
468
469 message: str # Error message describing what failed during cleanup
470
471 def __post_init__(self) -> None:
472 Exception.__init__(self, self.message)
473
474 @staticmethod
475 def from_dict(obj: Any) -> StopError:
476 assert isinstance(obj, dict)
477 message = obj.get("message")
478 if message is None:
479 raise ValueError("Missing required field 'message' in StopError")
480 return StopError(str(message))
481
482 def to_dict(self) -> dict:
483 result: dict = {}
484 result["message"] = self.message
485 return result
486
487
488@dataclass

Callers 2

from_dictMethod · 0.85
stopMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…