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:
    SoMemoryError, SoReadError, SoGLError
    • Constructor Detail

      • SoDebugError

        public SoDebugError()
        Default constructor.
    • 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.