8 #ifndef TurtleBrains_Error_hpp
9 #define TurtleBrains_Error_hpp
23 #define tb_error(message, ...) { tbCore::Error::TriggerError(__FILE__, __LINE__, message, ##__VA_ARGS__); }
42 #define tb_error_if(errorTest, message, ...) { if (errorTest) { tbCore::Error::TriggerError(__FILE__, __LINE__, message, ##__VA_ARGS__); } }
83 virtual void OnErrorFired(
const std::string& errorMessage) = 0;
109 void TriggerError(
const char*
const fromFile,
int onLineNumber,
const char*
const message, ...);
117 void TriggerErrorIf(
bool testResult,
const char*
const message, ...);
125 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
bool IsThrowingOnError(void)
void TriggerError(const char *const message,...)
Here is some information about the primary namespace.
Definition: tb_application_dialog.hpp:21
void EnableThrowOnError(void)
int GetLineNumber(void) const
void DisableThrowOnError(void)
ErrorHandlerInterface(void)
Customize what happens when an error is fired.
Definition: tb_error.hpp:63
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.hpp:88