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

Method UnknownWorkspace

include/Core/System/Exceptions.hpp:101–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99 {
100 public:
101 UnknownWorkspace(std::string_view workspace,
102 const std::vector<std::string>& allWorkspaces, DebugInfo info)
103 : Exception("UnknownWorkspace", info)
104 {
105 this->error("Impossible to get Workspace '{}', please check it is correctly "
106 "indexed", workspace);
107 std::vector<std::string> suggestions
108 = Utils::String::sortByDistance(workspace.data(), allWorkspaces, 5);
109 std::transform(suggestions.begin(), suggestions.end(), suggestions.begin(),
110 Utils::String::quote);
111 this->hint("Maybe you meant to get one of these workspaces : ({})",
112 fmt::join(suggestions, ", "));
113 }
114 };
115}

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