MCPcopy Create free account
hub / github.com/StackStorm/st2 / __init__

Method __init__

pants-plugins/uses_services/exceptions.py:43–53  ·  view source on GitHub ↗
(
        self, service: str, platform: Platform, instructions: str = "", msg=None
    )

Source from the content-addressed store, hash-verified

41 """Error raised when a test uses a service but that service is missing."""
42
43 def __init__(
44 self, service: str, platform: Platform, instructions: str = "", msg=None
45 ):
46 if msg is None:
47 msg = f"The {service} service does not seem to be running or is not accessible!"
48 if instructions:
49 msg += f"\n{instructions}"
50 super().__init__(msg)
51 self.service = service
52 self.platform = platform
53 self.instructions = instructions
54
55 @classmethod
56 def generate(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected