SoError man page on IRIX

Man page or keyword search:  
man Server   31559 pages
apropos Keyword Search (all sections)
Output format
IRIX logo
[printable version]



								  SoError(3IV)

NAME
     SoError (SoErr) - error handling base class

INHERITS FROM
     SoError

SYNOPSIS
     #include <Inventor_c/errors/SoError.h>

     typedef void	 SoErrorCB(const SoError *error, void *data)
     typedef SoError	 SoErr

	  Functions from class SoError:

     void		 SoErrSetHndlrCB(SoErrorCB *cb, void *data)
     SoErrorCB *	 SoErrGetHndlrCB()
     void *		 SoErrGetHndlrData()
     const SbString *	 SoErrGetDbgStr(const SoErr *this)
     SoType		 SoErrGetClassTypeId()
     SoType		 SoErrGetTypeId(const SoErr *this)
     SbBool		 SoErrIsOfType(const SoErr *this, SoType type)

DESCRIPTION
     SoError is the base class for all error classes, which provide error
     handling for applications. There are two facets to errors: posting and
     handling. An error is posted when some bad condition occurs. Posting is
     done primarily by the Inventor library itself, but extenders can post
     their own errors. Posting an error creates an instance of the appropriate
     error class (or subclass) and then passes it to the active error handler.
     The default handler just prints an appropriate message to stderr.
     Applications can override this behavior by supplying a different handler
     (by specifying a callback function).

     Each subclass of SoError supports the  SoErrSetHndlrCB() function, which
     is used to set the callback function to handle errors. The callback
     function for a specfic error class is always used in preference to that
     of any base classes when handling errors. The error instance passed to a
     callback is deleted immediately after the callback is called; an
     application that wishes to save information from the instance has to copy
     it out first.

     Each error class contains a run-time class type id (SoType) that can be
     used to determine the type of an instance. The base class defines a
     character string that represents a detailed error message that is printed
     by the default handler.

FUNCTIONS
     void		 SoErrSetHndlrCB(SoErrorCB *cb, void *data)
     SoErrorCB *	 SoErrGetHndlrCB()
     void *		 SoErrGetHndlrData()
	  Sets/returns handler callback for SoError class.

Page 1

SoError(3IV)

     const SbString *	 SoErrGetDbgStr(const SoErr *this)
	  Returns debug string containing full error information from
	  instance.

     SoType		 SoErrGetClassTypeId()
	  Returns type identifier for SoError class.

     SoType		 SoErrGetTypeId(const SoErr *this)
	  Returns type identifier for error instance.

     SbBool		 SoErrIsOfType(const SoErr *this, SoType type)
	  Returns TRUE if instance is of given type or is derived from it.

SEE ALSO
     SoDebugError, SoMemoryError, SoReadError

Page 2

[top]

List of man pages available for IRIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net