| 25 | class StatusConstant { |
| 26 | public: |
| 27 | StatusConstant(StatusCode code, std::string msg, |
| 28 | std::shared_ptr<StatusDetail> detail = nullptr) |
| 29 | : state_{code, /*is_constant=*/true, std::move(msg), std::move(detail)} { |
| 30 | ARROW_CHECK_NE(code, StatusCode::OK) |
| 31 | << "StatusConstant is not intended for use with OK status codes"; |
| 32 | } |
| 33 | |
| 34 | operator Status() { // NOLINT(runtime/explicit) |
| 35 | Status st; |
nothing calls this directly
no outgoing calls
no test coverage detected