SoDebugError Class Reference
[Errors]

Debug error handling. More...

#include <Inventor/errors/SoDebugError.h>

Inheritance diagram for SoDebugError:
SoError SoTypedObject

List of all members.

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 SoErrorCBgetHandlerCallback ()
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...)

Detailed Description

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.

SEE ALSO

SoMemoryError, SoReadError, SoGLError


Member Enumeration Documentation

Error severity.

Enumerator:
SERROR 

Error.

ERROR 
Deprecated:
Use SERROR instead. Error
Deprecated since Open Inventor 9.3
WARNING 

Just a warning.

INFO 

No error, just information.


Member Function Documentation

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.


The documentation for this class was generated from the following file:

Open Inventor Toolkit reference manual, generated on 12 Feb 2024
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/