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

Method _format_error

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

Source from the content-addressed store, hash-verified

2145 return f"[{detail_id.string()}] {detail_msg.string_literal()}"
2146
2147 def _format_error(self, state):
2148 code = int(state['code'])
2149 codename = self._status_codes_by_id.get(code)
2150 if codename is not None:
2151 s = f"arrow::Status::{codename}("
2152 else:
2153 s = f"arrow::Status(<unknown code {code}>, "
2154 s += StdString(state['msg']).string_literal()
2155 detail_msg = self._format_detail(state)
2156 if detail_msg is not None:
2157 return s + f", detail={detail_msg})"
2158 else:
2159 return s + ")"
2160
2161 def to_string(self):
2162 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