Jump to content

SomGetGlobalEnvironment

From EDM2
Revision as of 17:15, 10 October 2017 by Martini (talk | contribs) (Created page with "This function returns a pointer to the current global Environment structure. ==Syntax== <PRE> Environment *rc; rc = somGetGlobalEnvironment(); </PRE> ==Parameters== ==...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This function returns a pointer to the current global Environment structure.

Syntax

Environment     *rc;
rc = somGetGlobalEnvironment();

Parameters

Return Code

rc (Environment *)
A pointer to the current global Environment structure.

Remarks

This 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->exception._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 methods.

Example Code

See function somSetException.

Related

Data Structures

  • Environment (somcorba.h)

Functions

  • somExceptionId
  • somExceptionValue
  • somExceptionFree
  • somSetException