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

Method getStructuredErrors

cpp/cppsdk/jsoncpp.cpp:1074–1086  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1072}
1073
1074std::vector<Reader::StructuredError> Reader::getStructuredErrors() const {
1075 std::vector<Reader::StructuredError> allErrors;
1076 for (Errors::const_iterator itError = errors_.begin();
1077 itError != errors_.end(); ++itError) {
1078 const ErrorInfo& error = *itError;
1079 Reader::StructuredError structured;
1080 structured.offset_start = error.token_.start_ - begin_;
1081 structured.offset_limit = error.token_.end_ - begin_;
1082 structured.message = error.message_;
1083 allErrors.push_back(structured);
1084 }
1085 return allErrors;
1086}
1087
1088bool Reader::pushError(const Value& value, const JSONCPP_STRING& message) {
1089 ptrdiff_t const length = end_ - begin_;

Callers

nothing calls this directly

Calls 2

beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected