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

Method AddContextLine

cpp/src/arrow/status.cc:185–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183}
184
185void Status::AddContextLine(const char* filename, int line, const char* expr) {
186 ARROW_CHECK(!ok()) << "Cannot add context line to ok status";
187 std::stringstream ss;
188 ss << "\n" << filename << ":" << line << " " << expr;
189 if (state_->is_constant) {
190 // We can't add context lines to a StatusConstant's state, so copy it now
191 state_ = new State{code(), /*is_constant=*/false, message(), detail()};
192 }
193 state_->msg += ss.str();
194}
195
196} // namespace arrow

Callers 1

TESTFunction · 0.80

Calls 4

okFunction · 0.85
messageFunction · 0.85
strMethod · 0.80
codeFunction · 0.70

Tested by 1

TESTFunction · 0.64