MCPcopy Create free account
hub / github.com/Samsung/UTopia / getFormattedErrorMessages

Method getFormattedErrorMessages

external/jsoncpp/jsoncpp.cpp:1025–1036  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1023}
1024
1025String Reader::getFormattedErrorMessages() const {
1026 String formattedMessage;
1027 for (const auto &error : errors_) {
1028 formattedMessage +=
1029 "* " + getLocationLineAndColumn(error.token_.start_) + "\n";
1030 formattedMessage += " " + error.message_ + "\n";
1031 if (error.extra_)
1032 formattedMessage +=
1033 "See " + getLocationLineAndColumn(error.extra_) + " for detail.\n";
1034 }
1035 return formattedMessage;
1036}
1037
1038std::vector<Reader::StructuredError> Reader::getStructuredErrors() const {
1039 std::vector<Reader::StructuredError> allErrors;

Callers 1

parseMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected