MCPcopy Create free account
hub / github.com/bigdra50/unity-cli / UnityCLIError

Class UnityCLIError

unity_cli/exceptions.py:24–39  ·  view source on GitHub ↗

Base exception for Unity CLI operations. Attributes: code: Optional error code for programmatic handling

Source from the content-addressed store, hash-verified

22
23
24class UnityCLIError(Exception):
25 """Base exception for Unity CLI operations.
26
27 Attributes:
28 code: Optional error code for programmatic handling
29 """
30
31 def __init__(self, message: str, code: str | None = None) -> None:
32 super().__init__(message)
33 self.message = message
34 self.code = code
35
36 def __str__(self) -> str:
37 if self.code:
38 return f"[{self.code}] {self.message}"
39 return self.message
40
41
42class ConnectionError(UnityCLIError):

Callers 3

_raise_errorMethod · 0.90
schemaMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected