8 #ifndef _TurtleBrains_Error_h_
9 #define _TurtleBrains_Error_h_
23 #define tb_error(message, ...) { tbCore::Error::TriggerError(__FILE__, __LINE__, message, ##__VA_ARGS__); }
37 #define tb_error_if(errorTest, message, ...) { tbCore::Error::TriggerErrorIf((errorTest), __FILE__, __LINE__, message, ##__VA_ARGS__); }
78 virtual void OnErrorFired(
const std::string& errorMessage) = 0;
104 void TriggerError(
const char*
const fromFile,
int onLineNumber,
const char*
const message, ...);
112 void TriggerErrorIf(
bool testResult,
const char*
const message, ...);
120 void TriggerErrorIf(
bool testResult,
const char*
const fromFile,
int onLineNumber,
const char*
const message, ...);
void RemoveErrorHandler(ErrorHandlerInterface *errorHandler)
const std::string & GetFileName(void) const
virtual void OnErrorFired(const std::string &errorMessage)=0
void TriggerError(const char *const message,...)
Here is some information about the primary namespace.
Definition: tb_application_dialog.h:21
void EnableThrowOnError(void)
int GetLineNumber(void) const
void DisableThrowOnError(void)
ErrorHandlerInterface(void)
Customize what happens when an error is fired.
Definition: tb_error.h:58
void AddErrorHandler(ErrorHandlerInterface *errorHandler)
void TriggerErrorIf(bool testResult, const char *const message,...)
virtual ~ErrorHandlerInterface(void)
Contains core functionality for each component of the API.
Definition: tb_debug_logger.h:91