public class SoDebugError extends SoError
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:
Modifier and Type | Class and Description |
---|---|
static interface |
SoDebugError.Handler |
static class |
SoDebugError.Severities
Error severity.
|
Inventor.ConstructorCommand
Modifier and Type | Field and Description |
---|---|
static int |
INFO
Deprecated.
Use
SoDebugError.Severities.INFO instead. |
static int |
SERROR
Deprecated.
Use
SoDebugError.Severities.SERROR instead. |
static int |
WARNING
Deprecated.
Use
SoDebugError.Severities.WARNING instead. |
VERBOSE_LEVEL, ZeroHandle
Constructor and Description |
---|
SoDebugError()
Default constructor.
|
Modifier and Type | Method and 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.
|
getDebugString, post, setHandlerCallback
dispose, getAddress, getNativeResourceHandle, startInternalThreads, stopInternalThreads
@Deprecated public static final int SERROR
SoDebugError.Severities.SERROR
instead.@Deprecated public static final int WARNING
SoDebugError.Severities.WARNING
instead.@Deprecated public static final int INFO
SoDebugError.Severities.INFO
instead.public static void setHandlerCallback(SoDebugError.Handler h)
public SoDebugError.Severities getSeverity()
public static void postInfo(java.lang.String methodName, java.lang.String formatString)
public static void post(java.lang.String methodName, java.lang.String formatString)
public static void postWarning(java.lang.String methodName, java.lang.String formatString)
Generated on January 23, 2025, Copyright © Thermo Fisher Scientific. All rights reserved. http://www.openinventor.com