#include <HErrorManager.h>
Static Public Member Functions | |
static void | AllowAllErrors () |
static void | BeginErrorIteration () |
static void | CallbackEntryPoint (int category, int specific, int severity, int msgc, char **msgv, int stackc, char **stackv) |
static void | Cleanup () |
static void | DeleteLastError () |
static void | Flush () |
static bool | GetDialogRunning () |
static HErrorNode * | GetLastError () |
static HErrorNode * | GetNextError () |
static bool | GetShowDialog () |
static void | Init () |
static void | SetErrorCallback (void(*err)(HErrorNode *, void *), void *user_data) |
static void | SetShowDialog (bool s) |
static void | SetSpoolUpdateErrors (bool s) |
static void | ShowAllErrors () |
static void | SpoolUpdateErrors () |
static void | SuppressError (int severity, int category, int specific) |
static void HErrorManager::AllowAllErrors | ( | ) | [static] |
This method sets the system option to turn on all error, warning and information messages. It also clear the suppress errors list.
static void HErrorManager::BeginErrorIteration | ( | ) | [static] |
This method prepares the error handler for iteration through the error list. Call this method before making calls to GetNextError.
static void HErrorManager::CallbackEntryPoint | ( | int | category, | |
int | specific, | |||
int | severity, | |||
int | msgc, | |||
char ** | msgv, | |||
int | stackc, | |||
char ** | stackv | |||
) | [static] |
This is the callback function that handles the errors that are generated putting the in the correct error list. Note that when Update errors are received they are not immediately put in the error list and displayed. They are put in an update error list because error messages cannot be displayed while an update is occurring. When the update is finished, call SpoolUpdateError to move the update errors into the main error list to be displayed.
severity | An integer that defines the seriousness of the error as described in HC_Define_Error_Handler. | |
categeory | An integer that dentifies the general category the error belongs to as described in HC_Define_Error_Handler. For example, memory errors fall in the HEC_MEMORY error category. | |
specific | An integer that identifies the specific error under the category already defined as described in HC_Define_Error_Handler. For example, running out of memory, HES_OUT_OF_MEMORY, is a specific memory error in the HEC_MEMORY category. | |
msgc | The length of the msgv array. | |
msgv | An array of pointers to a list of messages. | |
stackc | The length of stackv. | |
stackv | An array of strings that indicates the list of methods that were called. The last being the currently active HOOPS routine and the first being the originating function. |
static void HErrorManager::Cleanup | ( | ) | [static] |
This method cleans up the error and suppression list and unregisters all callbacks.
static void HErrorManager::DeleteLastError | ( | ) | [static] |
This method remove the last error message from the error list and deletes it.
static void HErrorManager::Flush | ( | ) | [static] |
This method removes all the errors from the mail error list and the update error list.
static bool HErrorManager::GetDialogRunning | ( | ) | [inline, static] |
static HErrorNode* HErrorManager::GetLastError | ( | ) | [static] |
static HErrorNode* HErrorManager::GetNextError | ( | ) | [static] |
static bool HErrorManager::GetShowDialog | ( | ) | [inline, static] |
static void HErrorManager::Init | ( | ) | [static] |
This method initialized the error and suppression lists as well as registers the callback that handles errors that are generated by the HOOPS database.
static void HErrorManager::SetErrorCallback | ( | void(*)(HErrorNode *, void *) | err, | |
void * | user_data | |||
) | [inline, static] |
This method sets the event checker callback.
static void HErrorManager::SetShowDialog | ( | bool | s | ) | [inline, static] |
This method sets the show dialog member variable.
s | Pass true to show the error dialor or false not to show it. |
static void HErrorManager::SetSpoolUpdateErrors | ( | bool | s | ) | [inline, static] |
This method had not been implemented yet.
static void HErrorManager::ShowAllErrors | ( | ) | [static] |
This method iterates through all the messages the error list and displays them to the user.
static void HErrorManager::SpoolUpdateErrors | ( | ) | [static] |
This method iterates through the update error list which holds errors associated with HC_Update_Display and adds those errors that should not be suppress to the main error list. Note that no errors messages can be displayed during an update. Call this method after an update has occurred to ensure that an errors that were generated during an update will be displayed.
static void HErrorManager::SuppressError | ( | int | severity, | |
int | category, | |||
int | specific | |||
) | [static] |
This method takes a given the severity, category and specific and uses this combination to suppress errors that have the corresponding values.
severity | An integer that defines the seriousness of the error as described in HC_Define_Error_Handler. | |
categeory | An integer that dentifies the general category the error belongs to as described in HC_Define_Error_Handler. For example, memory errors fall in the HEC_MEMORY error category. | |
specific | An integer that identifies the specific error under the category already defined as described in HC_Define_Error_Handler. For example, running out of memory, HES_OUT_OF_MEMORY, is a specific memory error in the HEC_MEMORY category. |