MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / GetStackedErrorString

Function GetStackedErrorString

oneflow/core/common/error.cpp:358–363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

356}
357
358std::string GetStackedErrorString(const std::shared_ptr<StackedError>& error) {
359 const auto& maybe_error = TRY(FormatErrorStr(error));
360 const auto& error_str = maybe_error.GetDataAndStackedError(error->DebugString());
361 CHECK_NE(error->error_proto()->error_type_case(), ErrorProto::ERROR_TYPE_NOT_SET);
362 return error_str.first;
363}
364
365std::string GetErrorString(const std::shared_ptr<StackedError>& error) {
366 std::string error_str;

Callers 2

GetErrorStringFunction · 0.85
ThrowErrorFunction · 0.85

Calls 3

FormatErrorStrFunction · 0.85
DebugStringMethod · 0.45

Tested by

no test coverage detected