| 138 | } |
| 139 | |
| 140 | std::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 | |
| 148 | Status MakeFlightError(FlightStatusCode code, std::string message, |
| 149 | std::string extra_info) { |