HErrorNode

class HErrorNode

The HErrorNode class encapsulates error message information.

The HErrorNode class represents a specific error message and its properties.

Methods

HErrorNode::HErrorNode(int category, int specific, int severity, int msgc, char const **msgv, int stackc, char const **stackv, double time)

Constructs an HErrorNode object.

Parameters

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.

time: The time associated with when the error was generated.

HErrorNode::~HErrorNode()
void HErrorNode::Report()

This method calls #HC_Report_Error which display the error messages associated with this error node.

Variables

int HErrorNode::m_category
int

The category that this error falls under as described in #HC_Define_Error_Handler.

int HErrorNode::m_specific
int

The specific error under the category as described in #HC_Define_Error_Handler.

int HErrorNode::m_severity
int

The level of seriousness of this error.

int HErrorNode::m_messagelength
int

The number of messages associated with this error.

double HErrorNode::m_time
double

The time that the error was generated in seconds.

char const **HErrorNode::m_message
char const

The list messages associated with the error.

int HErrorNode::m_stacklength
int

The length of the call stack.

char const **HErrorNode::m_stack
char const

The list of functions that generated the error.