Class 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. 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:
  • Constructor Details

    • SoDebugError

      public SoDebugError()
      Default constructor.
  • Method Details

    • setHandlerCallback

      public static void setHandlerCallback(SoDebugError.Handler h)
      Sets the handler for SoDebugError class.
    • postInfo

      public static void postInfo(String methodName, String formatString)
      Posts an informational (non-error) message.
    • post

      public static void post(String methodName, String formatString)
      Posts an error.
    • postWarning

      public static void postWarning(String methodName, String formatString)
      Posts a warning.
    • getSeverity

      public SoDebugError.Severities getSeverity()
      Returns severity of error (for use by handlers).