MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / UnknownPackage

Method UnknownPackage

include/Core/System/Exceptions.hpp:62–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60 {
61 public:
62 UnknownPackage(std::string_view package,
63 const std::vector<std::string>& allPackages, DebugInfo info)
64 : Exception("UnknownPackage", info)
65 {
66 this->error(
67 "Impossible to get Package '{}', please check it is correctly installed");
68 std::vector<std::string> suggestions
69 = Utils::String::sortByDistance(package.data(), allPackages, 5);
70 std::transform(suggestions.begin(), suggestions.end(), suggestions.begin(),
71 Utils::String::quote);
72 this->hint("Maybe you meant to get one of these packages : ({})",
73 fmt::join(suggestions, ", "));
74 }
75 };
76
77 class PackageFileNotFound : public Exception

Callers

nothing calls this directly

Calls 7

sortByDistanceFunction · 0.85
joinFunction · 0.50
errorMethod · 0.45
dataMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
hintMethod · 0.45

Tested by

no test coverage detected