22#include <boost/serialization/access.hpp>
23#include <boost/serialization/string.hpp>
47 int who()
const {
return m_who; }
49 std::string
what()
const {
return m_what; }
51 std::string
function()
const {
return m_function; }
53 std::string
file()
const {
return m_file; }
55 int line()
const {
return m_line; }
57 std::string
format()
const;
63 template <
class Archive>
void serialize(Archive &ar,
const unsigned int) {
75 std::string m_function;
ErrorLevel level() const
The error level.
int line() const
The line where the error occurred.
std::string what() const
The Error Message.
std::string format() const
Get a string representation.
friend class boost::serialization::access
Boost serialization.
std::string function() const
The function where the error occurred.
int who() const
Which MPI node raised the error.
std::string file() const
The file where the error occurred.
RuntimeError(ErrorLevel level, int who, std::string what, std::string function, std::string file, int line)