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

Method UnwrapStatus

cpp/src/arrow/flight/types.cc:140–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138}
139
140std::shared_ptr<FlightStatusDetail> FlightStatusDetail::UnwrapStatus(
141 const arrow::Status& status) {
142 if (!status.detail() || status.detail()->type_id() != kErrorDetailTypeId) {
143 return nullptr;
144 }
145 return std::dynamic_pointer_cast<FlightStatusDetail>(status.detail());
146}
147
148Status MakeFlightError(FlightStatusCode code, std::string message,
149 std::string extra_info) {

Callers

nothing calls this directly

Calls 1

type_idMethod · 0.45

Tested by

no test coverage detected