class gpr::io::ErrorManager¶
Overview¶
Responsible for errors handling. More…
#include <managers/io/ErrorManager.h>
class ErrorManager {
public:
// construction
ErrorManager();
~ErrorManager();
// methods
template <typename T>
ErrorManager& operator<<(const T& data);
static void assertMsg(const bool expression, const std::string& message, const char* file, const char* func, const int line);
};
Detailed Documentation¶
Responsible for errors handling.
Methods¶
template <typename T>
ErrorManager& operator<<(const T& data)
Writes data to the log.
Parameters:
data |
Data. |
Returns:
Reference to this.
static void assertMsg(const bool expression, const std::string& message, const char* file, const char* func, const int line)
Prints error message and terminates the program.
Parameters:
expression |
Condition that must hold. |
message |
Error message written when |
file |
Source file containing the assertion. |
func |
Function name. |
line |
Line number. |