table of contents
other sections
SoError(3IV)() | SoError(3IV)() |
NAME¶
SoError — error handling base classINHERITS FROM¶
SoErrorSYNOPSIS¶
#include <Inventor/errors/SoError.h>typedef void SoErrorCB(const SoError *error, void *data)
Methods from class SoError:
static void setHandlerCallback(SoErrorCB *cb, void *data)
static SoErrorCB * getHandlerCallback()
static void * getHandlerData()
const SbString & getDebugString() const
static SoType getClassTypeId()
virtual SoType getTypeId() const
SbBool isOfType(SoType type) const
DESCRIPTION¶
SoError is the base class for all error classes, which provide error handling for applications. There are two facets to errors: posting and handling. An error is posted when some bad condition occurs. Posting is done primarily by the Inventor library itself, but extenders can post their own errors. Posting an error creates an instance of the appropriate error class (or subclass) and then passes it to the active error handler. The default handler just prints an appropriate message to stderr. Applications can override this behavior by supplying a different handler (by specifying a callback function).METHODS¶
static void setHandlerCallback(SoErrorCB *cb, void *data)
static SoErrorCB * getHandlerCallback()
static void * getHandlerData()
Sets/returns handler callback for SoError class.
const SbString & getDebugString() const
Returns debug string containing full error information from instance.
static SoType getClassTypeId()
Returns type identifier for SoError class.
virtual SoType getTypeId() const
Returns type identifier for error instance.
SbBool isOfType(SoType type) const
Returns TRUE if instance is of given type or is derived from it.