MCPcopy Create free account
hub / github.com/UbiquitousLearning/mllm / root_cause

Method root_cause

mllm-kernel/include/mllm_kernel/utils.hpp:71–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69 public:
70 explicit PanicError(const std::string& msg) : runtime_error(msg), message_(msg) {}
71 [[nodiscard]] auto root_cause() const -> std::string_view {
72 const auto str = std::string_view{message_};
73 const auto pos = str.find(": ");
74 return pos == std::string_view::npos ? str : str.substr(pos + 2);
75 }
76
77 private:
78 std::string message_;

Callers 1

verifyMethod · 0.80

Calls 1

findMethod · 0.45

Tested by

no test coverage detected