MCPcopy Create free account
hub / github.com/alibaba/graph-learn / _make_specific_exception

Function _make_specific_exception

graphlearn/python/errors.py:206–212  ·  view source on GitHub ↗
(message, error_code)

Source from the content-addressed store, hash-verified

204
205
206def _make_specific_exception(message, error_code):
207 try:
208 exc_type = exception_type_from_error_code(error_code)
209 return exc_type(message)
210 except KeyError:
211 warnings.warn("Unknown error code: %d" % error_code)
212 return UnknownError(message)
213
214
215def raise_exception_on_not_ok_status(status):

Callers 1

Calls 2

UnknownErrorClass · 0.85

Tested by

no test coverage detected