try \
{ \
ACTION; \
} \
catch (CheckedGeoError const& e) \
{ \
auto const& d = e.details(); \
msg << "Failed "; \
if (!d.condition.empty()) \
{ \
msg << '\'' << d.condition << "' "; \
} \
msg << "at " << d.file << ':' << d.line << " during '" << #ACTION \
<< "'"; \
ADD_FAILURE() << d.what; \
return result; \
} \
catch (std::exception const& e) \
{ \
ADD_FAILURE() << "Caught exception during '" << #ACTION \
<< "': " << e.what() << ": " << geo; \
return result; \
}
#define CELER_LOG(LEVEL)
Return a LogMessage object for streaming into at the given level.
Definition corecel/io/Logger.hh:47