MCPcopy Create free account
hub / github.com/libgit2/pygit2 / check_error

Method check_error

pygit2/callbacks.py:101–110  ·  view source on GitHub ↗
(self, error_code: int)

Source from the content-addressed store, hash-verified

99 self._stored_exception = None
100
101 def check_error(self, error_code: int) -> None:
102 if error_code == C.GIT_EUSER:
103 assert self._stored_exception is not None
104 raise self._stored_exception
105 elif self._stored_exception is not None:
106 # A callback mapped to a C function returning void
107 # might still have raised an exception.
108 raise self._stored_exception
109
110 check_error(error_code)
111
112
113class RemoteCallbacks(Payload):

Callers 12

checkout_headMethod · 0.80
checkout_indexMethod · 0.80
checkout_treeMethod · 0.80
stash_applyMethod · 0.80
stash_popMethod · 0.80
clone_repositoryFunction · 0.80
updateMethod · 0.80
addMethod · 0.80
connectMethod · 0.80
fetchMethod · 0.80
pruneMethod · 0.80
pushMethod · 0.80

Calls 1

check_errorFunction · 0.85

Tested by

no test coverage detected