Package com.openinventor.inventor.errors
Class SoDebugError
- java.lang.Object
-
- com.openinventor.inventor.Inventor
-
- com.openinventor.inventor.errors.SoError
-
- com.openinventor.inventor.errors.SoDebugError
-
public class SoDebugError extends SoError
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. Thepost()
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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
SoDebugError.Handler
static class
SoDebugError.Severities
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 Constructor Description SoDebugError()
Default constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SoDebugError.Severities
getSeverity()
Returns severity of error (for use by handlers).static void
post(java.lang.String methodName, java.lang.String formatString)
Posts an error.static void
postInfo(java.lang.String methodName, java.lang.String formatString)
Posts an informational (non-error) message.static void
postWarning(java.lang.String methodName, java.lang.String formatString)
Posts a warning.static void
setHandlerCallback(SoDebugError.Handler h)
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
-
-
-
-
Method Detail
-
setHandlerCallback
public static void setHandlerCallback(SoDebugError.Handler h)
Sets the handler for SoDebugError class.
-
postInfo
public static void postInfo(java.lang.String methodName, java.lang.String formatString)
Posts an informational (non-error) message.
-
post
public static void post(java.lang.String methodName, java.lang.String formatString)
Posts an error.
-
postWarning
public static void postWarning(java.lang.String methodName, java.lang.String formatString)
Posts a warning.
-
getSeverity
public SoDebugError.Severities getSeverity()
Returns severity of error (for use by handlers).
-
-