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

Method _format_error

cpp/gdb_arrow.py:2130–2142  ·  view source on GitHub ↗
(self, state)

Source from the content-addressed store, hash-verified

2128 return f"[{detail_id.string()}] {detail_msg.string_literal()}"
2129
2130 def _format_error(self, state):
2131 code = int(state['code'])
2132 codename = self._status_codes_by_id.get(code)
2133 if codename is not None:
2134 s = f"arrow::Status::{codename}("
2135 else:
2136 s = f"arrow::Status(<unknown code {code}>, "
2137 s += StdString(state['msg']).string_literal()
2138 detail_msg = self._format_detail(state)
2139 if detail_msg is not None:
2140 return s + f", detail={detail_msg})"
2141 else:
2142 return s + ")"
2143
2144 def to_string(self):
2145 state_ptr = self.val['state_']

Callers 2

to_stringMethod · 0.95
to_stringMethod · 0.80

Calls 4

_format_detailMethod · 0.95
StdStringClass · 0.85
getMethod · 0.45
string_literalMethod · 0.45

Tested by

no test coverage detected