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

Method CodeAsString

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

Source from the content-addressed store, hash-verified

117}
118
119std::string FlightStatusDetail::CodeAsString() const {
120 switch (code()) {
121 case FlightStatusCode::Internal:
122 return "Internal";
123 case FlightStatusCode::TimedOut:
124 return "TimedOut";
125 case FlightStatusCode::Cancelled:
126 return "Cancelled";
127 case FlightStatusCode::Unauthenticated:
128 return "Unauthenticated";
129 case FlightStatusCode::Unauthorized:
130 return "Unauthorized";
131 case FlightStatusCode::Unavailable:
132 return "Unavailable";
133 case FlightStatusCode::Failed:
134 return "Failed";
135 default:
136 return "Unknown";
137 }
138}
139
140std::shared_ptr<FlightStatusDetail> FlightStatusDetail::UnwrapStatus(
141 const arrow::Status& status) {

Callers

nothing calls this directly

Calls 1

codeFunction · 0.70

Tested by

no test coverage detected