MCPcopy Create free account
hub / github.com/microsoft/debugpy / applies_to

Method applies_to

src/debugpy/common/messaging.py:1049–1057  ·  view source on GitHub ↗

Whether this MessageHandlingError can be treated as a reason why the handling of message failed. If self.cause is None, this is always true. If self.cause is not None, this is only true if cause is message.

(self, message)

Source from the content-addressed store, hash-verified

1047 return s
1048
1049 def applies_to(self, message):
1050 """Whether this MessageHandlingError can be treated as a reason why the
1051 handling of message failed.
1052
1053 If self.cause is None, this is always true.
1054
1055 If self.cause is not None, this is only true if cause is message.
1056 """
1057 return self.cause is None or self.cause is message
1058
1059 def propagate(self, new_cause):
1060 """Propagates this error, raising a new instance of the same class with the

Callers 3

_handleMethod · 0.80
_handleMethod · 0.80
run_handlersMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected