MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / _add_error_label

Method _add_error_label

pymongo/errors.py:46–48  ·  view source on GitHub ↗

Add the given label to this error.

(self, label: str)

Source from the content-addressed store, hash-verified

44 return label in self._error_labels
45
46 def _add_error_label(self, label: str) -> None:
47 """Add the given label to this error."""
48 self._error_labels.add(label)
49
50 def _remove_error_label(self, label: str) -> None:
51 """Remove the given label from this error."""

Callers 12

got_app_errorFunction · 0.80
got_app_errorFunction · 0.80
_select_serverMethod · 0.80
handleMethod · 0.80
_select_serverMethod · 0.80
handleMethod · 0.80

Calls 1

addMethod · 0.80

Tested by 2

got_app_errorFunction · 0.64
got_app_errorFunction · 0.64