SOM Kernel Reference 1-17
somGetGlobalEnvironment Function
Purpose
Returns a pointer to the current global Environment structure.
Syntax
Environment *somGetGlobalEnvironment ( );
Description
The somGetGlobalEnvironment function returns a pointer to the current global
Environment structure. This structure can be passed to methods that require an
(Environment *) argument. The caller can determine if the called method has raised an
exception by testing whether
ev–>_major != NO_EXCEPTION
If an exception has been raised, the caller can retrieve the name and value of the exception
using the somExceptionId and somExceptionValue functions.
Return Value
A pointer to the current global Environment structure.
Example
See the somSetException function.
Related Information
Functions: somExceptionId, somdExceptionFree, somSetException,
somExceptionValue
Data Structures: Environment (somcorba.h)
Kommentare zu diesen Handbüchern