Debug error handling. More...
#include <Inventor/errors/SoDebugError.h>
Public Types | |
enum | Severity { SERROR = 0, ERROR = SERROR, WARNING = 1, INFO = 2 } |
Public Member Functions | |
virtual SoType | getTypeId () const |
SoDebugError::Severity | getSeverity () const |
Static Public Member Functions | |
static void | setHandlerCallback (SoErrorCB *cb, void *data) |
static SoErrorCB * | getHandlerCallback () |
static void * | getHandlerData () |
static SoType | getClassTypeId () |
static void | post (const char *methodName, const char *formatString...) |
static void | postWarning (const char *methodName, const char *formatString...) |
static void | postInfo (const char *methodName, const char *formatString...) |
Debug error handling.
SoDebugError is used for all errors reported from Open Inventor library. These errors are typically programmer errors, such as passing a null reference or an out-of-range index. The post() method takes the name of the Open Inventor method that detected the error, to aid the programmer in debugging.
See SoError for full discussion of error handling in Open Inventor.
SoMemoryError, SoReadError, SoGLError
Error severity.
SERROR |
Error. |
ERROR |
|
WARNING |
Just a warning. |
INFO |
No error, just information. |
static SoType SoDebugError::getClassTypeId | ( | ) | [static] |
Returns type identifier for SoDebugError class.
Reimplemented from SoError.
static SoErrorCB* SoDebugError::getHandlerCallback | ( | ) | [static] |
Returns handler callback for SoDebugError class.
Reimplemented from SoError.
static void* SoDebugError::getHandlerData | ( | ) | [static] |
Returns handler data for SoDebugError class.
Reimplemented from SoError.
SoDebugError::Severity SoDebugError::getSeverity | ( | ) | const [inline] |
Returns severity of error (for use by handlers).
virtual SoType SoDebugError::getTypeId | ( | ) | const [virtual] |
Returns type identifier for error instance.
Reimplemented from SoError.
static void SoDebugError::post | ( | const char * | methodName, | |
const char * | formatString... | |||
) | [static] |
Posts an error.
static void SoDebugError::postInfo | ( | const char * | methodName, | |
const char * | formatString... | |||
) | [static] |
Posts an informational (non-error) message.
static void SoDebugError::postWarning | ( | const char * | methodName, | |
const char * | formatString... | |||
) | [static] |
Posts a warning.
static void SoDebugError::setHandlerCallback | ( | SoErrorCB * | cb, | |
void * | data | |||
) | [static] |
Sets handler callback for SoDebugError class.
Reimplemented from SoError.