class gpr::io::ErrorManager¶
Overview¶
Responsible for errors handling. More…
#include <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.
Prints error message and terminates the program.
Parameters:
expression |
Assert. |
message |
Message. |
expression |
Assert. |
message |
Message. |
file |
Filen ame. |
func |
Function name. |
line |
Line number. |