MCPcopy Create free account
hub / github.com/PlayFab/gsdk / getFormattedErrorMessages

Method getFormattedErrorMessages

cpp/cppsdk/jsoncpp.cpp:1059–1072  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

parseMethod · 0.80

Calls 2

beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected