MCPcopy Create free account
hub / github.com/ablab/spades / errorToErrorCode

Function errorToErrorCode

ext/src/llvm/Error.cpp:93–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91}
92
93std::error_code errorToErrorCode(Error Err) {
94 std::error_code EC;
95 handleAllErrors(std::move(Err), [&](const ErrorInfoBase &EI) {
96 EC = EI.convertToErrorCode();
97 });
98 if (EC == inconvertibleErrorCode())
99 report_fatal_error(EC.message());
100 return EC;
101}
102
103#if LLVM_ENABLE_ABI_BREAKING_CHECKS
104void Error::fatalUncheckedError() const {

Callers 6

getMemoryBufferForStreamFunction · 0.85
getFileAuxFunction · 0.85
getReadWriteFileFunction · 0.85
getOpenFileImplFunction · 0.85
getFileAsStreamMethod · 0.85
expectedToErrorOrFunction · 0.85

Calls 5

handleAllErrorsFunction · 0.85
inconvertibleErrorCodeFunction · 0.85
report_fatal_errorFunction · 0.85
convertToErrorCodeMethod · 0.45
messageMethod · 0.45

Tested by

no test coverage detected