MCPcopy Create free account
hub / github.com/apache/fory / to_string

Method to_string

cpp/fory/util/error.cc:53–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51#define ERROR_CODE_BUFFER_OUT_OF_BOUND "Buffer out of bound"
52
53std::string Error::to_string() const {
54 std::string result = code_as_string();
55 if (!state_->msg_.empty()) {
56 result += ": ";
57 result += state_->msg_;
58 }
59 return result;
60}
61
62std::string Error::code_as_string() const {
63 static std::unordered_map<ErrorCode, std::string> code_to_str = {

Callers 4

TESTFunction · 0.45
reader_indexMethod · 0.45
error.hFile · 0.45
TESTFunction · 0.45

Calls 1

emptyMethod · 0.45

Tested by 2

TESTFunction · 0.36
TESTFunction · 0.36