MCPcopy Create free account
hub / github.com/apache/arrow / IsPyError

Function IsPyError

python/pyarrow/src/arrow/python/common.cc:198–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196}
197
198bool IsPyError(const Status& status) {
199 if (status.ok()) {
200 return false;
201 }
202 auto detail = status.detail();
203 bool result = detail != nullptr && detail->type_id() == kErrorDetailTypeId;
204 return result;
205}
206
207void RestorePyError(const Status& status) {
208 ARROW_CHECK(IsPyError(status));

Callers 3

RestorePyErrorFunction · 0.85
SafeCallIntoPythonFunction · 0.85

Calls 2

okMethod · 0.45
type_idMethod · 0.45

Tested by 1