MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / getFormattedErrorMessages

Method getFormattedErrorMessages

json/jsoncpp.cpp:1061–1074  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1059}
1060
1061JSONCPP_STRING Reader::getFormattedErrorMessages() const {
1062 JSONCPP_STRING formattedMessage;
1063 for (Errors::const_iterator itError = errors_.begin();
1064 itError != errors_.end(); ++itError) {
1065 const ErrorInfo& error = *itError;
1066 formattedMessage +=
1067 "* " + getLocationLineAndColumn(error.token_.start_) + "\n";
1068 formattedMessage += " " + error.message_ + "\n";
1069 if (error.extra_)
1070 formattedMessage +=
1071 "See " + getLocationLineAndColumn(error.extra_) + " for detail.\n";
1072 }
1073 return formattedMessage;
1074}
1075
1076std::vector<Reader::StructuredError> Reader::getStructuredErrors() const {
1077 std::vector<Reader::StructuredError> allErrors;

Callers 1

parseMethod · 0.80

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected