25 const char* filename,
const char* func, uint32_t linenum)
const {
28 }
else if (error_batch_.size() == 1) {
29 return error_batch_[0];
32 std::stringstream message;
33 for (
size_t i = 0; i < error_batch_.size(); ++i) {
37 message <<
"Error[" << i <<
"]:" << error_batch_[i];
Root package of FOEDUS (Fast Optimistic Engine for Data Unification Services).
Brings error stacktrace information as return value of functions.
std::ostream & operator<<(std::ostream &o, const Epoch &v)
Batches zero or more ErrorStack objects to represent in one ErrorStack.
ErrorStack summarize(const char *filename, const char *func, uint32_t linenum) const
Instantiate an ErrorStack object that summarizes all errors in this batch.
0x0004 : "GENERAL: More than one errors observed" .
#define SUMMARIZE_ERROR_BATCH(x)
This macro calls ErrorStackBatch::summarize() with automatically provided parameters.
bool is_error() const
Returns whether there was any error.
const ErrorStack kRetOk
Normal return value for no-error case.