20#ifndef ESPRESSO_SRC_CORE_ERROR_HANDLING_RUNTIME_ERROR_COLLECTOR_HPP
21#define ESPRESSO_SRC_CORE_ERROR_HANDLING_RUNTIME_ERROR_COLLECTOR_HPP
25#include <boost/mpi/communicator.hpp>
41 const char *function,
const char *file,
int line);
43 void warning(
const std::string &msg,
const char *function,
const char *file,
45 void warning(
const char *msg,
const char *function,
const char *file,
47 void warning(
const std::ostringstream &mstr,
const char *function,
48 const char *file,
int line);
50 void error(
const std::string &msg,
const char *function,
const char *file,
52 void error(
const char *msg,
const char *function,
const char *file,
int line);
53 void error(
const std::ostringstream &mstr,
const char *function,
54 const char *file,
int line);
82 std::vector<RuntimeError>
gather();
85 const boost::mpi::communicator &
comm()
const {
return m_comm; }
88 std::vector<RuntimeError> m_errors;
89 boost::mpi::communicator m_comm;
void clear()
Reset error messages.
void message(RuntimeError message)
void flush()
Flush error messages to standard error.
std::vector< RuntimeError > gather()
int count() const
Get the number of all flying messages on all nodes.
void error(const std::string &msg, const char *function, const char *file, int line)
void warning(const std::string &msg, const char *function, const char *file, int line)
const boost::mpi::communicator & comm() const
ErrorLevel
The error level, warnings are only displayed to the user, errors are fatal.