ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
|
A runtime error. More...
#include <RuntimeError.hpp>
Public Types | |
enum class | ErrorLevel { DEBUG , INFO , WARNING , ERROR } |
The error level, warnings are only displayed to the user, errors are fatal. More... | |
Public Member Functions | |
RuntimeError ()=default | |
RuntimeError (ErrorLevel level, int who, std::string what, std::string function, std::string file, int line) | |
ErrorLevel | level () const |
The error level. | |
int | who () const |
Which MPI node raised the error. | |
std::string | what () const |
The Error Message. | |
std::string | function () const |
The function where the error occurred. | |
std::string | file () const |
The file where the error occurred. | |
int | line () const |
The line where the error occurred. | |
std::string | format () const |
Get a string representation. | |
void | print () const |
Friends | |
class | boost::serialization::access |
Boost serialization. | |
A runtime error.
This class describes a runtime error, including where it occurred and its severity.
Definition at line 36 of file RuntimeError.hpp.
|
strong |
The error level, warnings are only displayed to the user, errors are fatal.
Enumerator | |
---|---|
DEBUG | |
INFO | |
WARNING | |
ERROR |
Definition at line 40 of file RuntimeError.hpp.
|
default |
|
inline |
Definition at line 42 of file RuntimeError.hpp.
|
inline |
The file where the error occurred.
Definition at line 57 of file RuntimeError.hpp.
Referenced by format().
std::string ErrorHandling::RuntimeError::format | ( | ) | const |
|
inline |
The function where the error occurred.
Definition at line 55 of file RuntimeError.hpp.
Referenced by format().
|
inline |
The error level.
Definition at line 49 of file RuntimeError.hpp.
|
inline |
The line where the error occurred.
Definition at line 59 of file RuntimeError.hpp.
Referenced by format().
void ErrorHandling::RuntimeError::print | ( | ) | const |
Definition at line 57 of file RuntimeError.cpp.
References format().
|
inline |
|
inline |
Which MPI node raised the error.
Definition at line 51 of file RuntimeError.hpp.
Referenced by format().
|
friend |
Boost serialization.
Definition at line 66 of file RuntimeError.hpp.