29 report +=
" " + std::string(loc.fFunction) +
" [" + std::string(loc.fSourceFile) +
":" +
30 std::to_string(loc.fSourceLine) +
"]\n";
36 const std::string &message,
RLocation &&sourceLocation)
47 fStackTrace.emplace_back(sourceLocation);
54#if __cplusplus >= 201703L
55 if (std::uncaught_exceptions() == 0)
57 if (!std::uncaught_exception())
62 R__LOG_WARNING() <<
"unhandled RResult exception during stack unwinding";
#define R__unlikely(expr)
#define R__LOG_WARNING(...)
std::string fMessage
User-facing error message.
void AddFrame(RLocation &&sourceLocation)
Used by R__FORWARD_RESULT.
std::vector< RLocation > fStackTrace
The location of the error related to fMessage plus upper frames if the error is forwarded through the...
RError(const std::string &message, RLocation &&sourceLocation)
Used by R__FAIL.
std::string GetReport() const
Format a dignostics report, e.g. for an exception message.
Base class for all ROOT issued exceptions.
void Throw()
Throws an RException with fError.
~RResultBase() noexcept(false)