Package com.openinventor.inventor.errors
Class SoDebugError
java.lang.Object
com.openinventor.inventor.Inventor
com.openinventor.inventor.errors.SoError
com.openinventor.inventor.errors.SoDebugError
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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
static enum
Error severity.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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns severity of error (for use by handlers).static void
Posts an error.static void
Posts an informational (non-error) message.static void
postWarning
(String methodName, String formatString) Posts a warning.static void
Sets the handler for SoDebugError class.Methods inherited from class com.openinventor.inventor.errors.SoError
getDebugString, post, setHandlerCallback
Methods inherited from class com.openinventor.inventor.Inventor
dispose, getNativeResourceHandle
-
Constructor Details
-
SoDebugError
public SoDebugError()Default constructor.
-
-
Method Details
-
setHandlerCallback
Sets the handler for SoDebugError class. -
postInfo
Posts an informational (non-error) message. -
post
Posts an error. -
postWarning
Posts a warning. -
getSeverity
Returns severity of error (for use by handlers).
-