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

Method getStructuredErrors

json/jsoncpp.cpp:1076–1088  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

push_backMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected