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

Function TryConvertStatusCode

cpp/src/arrow/flight/test_definitions.cc:1480–1487  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1478};
1479
1480arrow::Result<StatusCode> TryConvertStatusCode(int raw_code) {
1481 for (const auto status_code : kStatusCodes) {
1482 if (raw_code == static_cast<int>(status_code)) {
1483 return status_code;
1484 }
1485 }
1486 return Status::Invalid(raw_code);
1487}
1488arrow::Result<FlightStatusCode> TryConvertFlightStatusCode(int raw_code) {
1489 for (const auto status_code : kFlightStatusCodes) {
1490 if (raw_code == static_cast<int>(status_code)) {

Callers

nothing calls this directly

Calls 1

InvalidFunction · 0.50

Tested by

no test coverage detected