![]() |
ESPResSo
Extensible Simulation Package for Research on Soft Matter Systems
|
A runtime error. More...
#include <RuntimeError.hpp>
Public Types | |
| enum class | ErrorLevel { WARNING , ERROR } |
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 35 of file RuntimeError.hpp.
|
strong |
| Enumerator | |
|---|---|
| WARNING | |
| ERROR | |
Definition at line 36 of file RuntimeError.hpp.
|
default |
|
inline |
Definition at line 38 of file RuntimeError.hpp.
|
inline |
The file where the error occurred.
Definition at line 53 of file RuntimeError.hpp.
Referenced by format().
| std::string ErrorHandling::RuntimeError::format | ( | ) | const |
Get a string representation.
Definition at line 28 of file RuntimeError.cpp.
References ERROR, file(), function(), line(), WARNING, what(), and who().
Referenced by print().
|
inline |
The function where the error occurred.
Definition at line 51 of file RuntimeError.hpp.
Referenced by format().
|
inline |
The error level.
Definition at line 45 of file RuntimeError.hpp.
|
inline |
The line where the error occurred.
Definition at line 55 of file RuntimeError.hpp.
Referenced by format().
| void ErrorHandling::RuntimeError::print | ( | ) | const |
Definition at line 51 of file RuntimeError.cpp.
References format().
|
inline |
|
inline |
Which MPI node raised the error.
Definition at line 47 of file RuntimeError.hpp.
Referenced by format().
|
friend |
Boost serialization.
Definition at line 62 of file RuntimeError.hpp.