#include <libsswf.h>
Public Member Functions | |
virtual error_code_t | OnError (error_code_t errcode, const char *msg)=0 |
Function to overload to catch errors. | |
virtual | ~ErrorHandler () |
A destructor since the class has a virtual function. |
ErrorManager::ErrorHandler::~ErrorHandler | ( | ) | [virtual] |
This destructor ensures that all the destructors from classes derived from this class are called as expected.
sswf::ErrorManager::ErrorHandler::OnError | ( | error_code_t | errcode, | |
const char * | msg | |||
) | [pure virtual] |
To catch the errors, derive from the ErrorHandler sub-class and implement this function. It receives the error code and a message one can print on the screen.
[in] | errcode | The code of the error being generated |
[in] | msg | The message corresponding to the specified errcode |
Referenced by sswf::ErrorManager::OnError().