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

Method StatusConstant

cpp/src/arrow/status_internal.h:27–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25class 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;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected