Package com.openinventor.inventor.errors
Class SoErrorStack
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.errors.SoError
com.openinventor.inventor.errors.SoErrorStack
Stack debugging handler.
SoErrorStack
is used to obtain and/or report the program callstack.
The post()
method gets the actual callstack and calls a custom callback, if one is defined, else it dumps the callstack using SoDebugError
.
It is also possible to allow SoStackError to automaticaly report the callstack, when a signal is reported by the system, by setting OIV_DEBUG_STACKERROR to 1.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
static class
This struture contains the description of a stack frame.Nested classes/interfaces inherited from class com.openinventor.inventor.Inventor
Inventor.ConstructorCommand
-
Field Summary
Fields inherited from class com.openinventor.inventor.Inventor
VERBOSE_LEVEL, ZeroHandle
-
Method Summary
Modifier and TypeMethodDescriptiongetStack()
This function returns a decoded version of thegetStackFrames()
function.Returns the stack frames of the current callback stack.static void
post()
Posts the current callstack to the application callback or toSoDebugError
if the custom callback was not specified.static void
Sets the handler for SoErrorStack class.Methods inherited from class com.openinventor.inventor.errors.SoError
getDebugString, post, setHandlerCallback
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
Method Details
-
setHandlerCallback
Sets the handler for SoErrorStack class. -
getStackFrames
Returns the stack frames of the current callback stack. This function is useful to get the stack frames when the custom callback is called.- Returns:
- The list of frames in the actual callstack.
-
post
public static void post()Posts the current callstack to the application callback or toSoDebugError
if the custom callback was not specified. -
getStack
This function returns a decoded version of thegetStackFrames()
function.- Returns:
- A string which contains a human readable version of the stack.
-