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

Function ErrnoFromStatusDetail

cpp/src/arrow/util/io_util.cc:457–462  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

455}
456
457std::optional<int> ErrnoFromStatusDetail(const StatusDetail& detail) {
458 if (detail.type_id() == kErrnoDetailTypeId) {
459 return checked_cast<const ErrnoDetail&>(detail).errnum();
460 }
461 return std::nullopt;
462}
463
464#if _WIN32
465std::shared_ptr<StatusDetail> StatusDetailFromWinError(int errnum) {

Callers 1

TestFromUriAbfsMethod · 0.85

Calls 2

type_idMethod · 0.45
errnumMethod · 0.45

Tested by 1

TestFromUriAbfsMethod · 0.68