MCPcopy Create free account
hub / github.com/apple/foundationdb / internal_error_impl

Function internal_error_impl

flow/Error.cpp:52–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52Error internal_error_impl(const char* file, int line) {
53 fprintf(stderr, "Internal Error @ %s %d:\n %s\n", file, line, platform::get_backtrace().c_str());
54
55 TraceEvent(SevError, "InternalError")
56 .error(Error::fromCode(error_code_internal_error))
57 .detail("File", file)
58 .detail("Line", line)
59 .setErrorKind(ErrorKind::BugDetected)
60 .backtrace();
61 flushTraceFileVoid();
62 return Error(error_code_internal_error);
63}
64
65Error internal_error_impl(const char* msg, const char* file, int line) {
66 fprintf(stderr, "Assertion %s failed @ %s %d:\n %s\n", msg, file, line, platform::get_backtrace().c_str());

Callers 1

assert_num_implFunction · 0.85

Calls 8

fprintfFunction · 0.85
get_backtraceFunction · 0.85
TraceEventClass · 0.85
flushTraceFileVoidFunction · 0.85
detailMethod · 0.80
ErrorClass · 0.70
c_strMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected