Container for error reports. More...
#include <universal_error.hpp>
Public Member Functions | |
| UniversalError (std::string const &err_msg) | |
| Class constructor. More... | |
| UniversalError (const UniversalError &origin) | |
| Copy constructor. More... | |
| void | Append2ErrorMessage (std::string const &msg) |
| Appends std::string to the error message. More... | |
| void | AddEntry (std::string const &field, double value) |
| Adds an entry to the list. More... | |
| std::string const & | GetErrorMessage (void) const |
| Returns the error message. More... | |
| std::vector< std::string > const & | GetFields (void) const |
| Returns entry fields. More... | |
| std::vector< double > const & | GetValues (void) const |
| Returns entry values. More... | |
Container for error reports.
Definition at line 14 of file universal_error.hpp.
|
explicit |
Class constructor.
| err_msg | Error message |
Definition at line 5 of file universal_error.cpp.
| UniversalError::UniversalError | ( | const UniversalError & | origin | ) |
| void UniversalError::AddEntry | ( | std::string const & | field, |
| double | value | ||
| ) |
Adds an entry to the list.
| field | Entry title |
| value | Value of entry |
Definition at line 20 of file universal_error.cpp.

| void UniversalError::Append2ErrorMessage | ( | std::string const & | msg | ) |
Appends std::string to the error message.
| msg | Message to append |
Definition at line 15 of file universal_error.cpp.
| string const & UniversalError::GetErrorMessage | ( | void | ) | const |
Returns the error message.
Definition at line 27 of file universal_error.cpp.

| vector< string > const & UniversalError::GetFields | ( | void | ) | const |
Returns entry fields.
Definition at line 32 of file universal_error.cpp.

| vector< double > const & UniversalError::GetValues | ( | void | ) | const |
Returns entry values.
Definition at line 37 of file universal_error.cpp.

1.8.13