Bull DPX/20 Uživatelská příručka Strana 43

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 424
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 42
SOM Kernel Reference 1-31
somSetException Function
Purpose
Sets an exception value in an Environment structure.
Syntax
void somSetException (Environment *ev,
enum exception_type major,
string exceptionName,
somToken params);
Description
The somSetException function sets an exception value in an Environment structure.
Parameters
ev A pointer to the Environment structure in which to set the exception. This
value must be either NULL or a value formerly obtained from the function
somGetGlobalEnvironment.
major An integer representing the type of exception to set.
exceptionName The qualified name of the exception to set. The SOM Compiler defines, in
the header files it generates for an interface, a constant whose value is the
qualified name of each exception defined within the interface. This constant
has the name “ex_<exceptionName>”, where <exceptionName> is the
qualified (scoped) exception name. Where unambiguous, the usage
bindings also define the short form “ex_<exceptionName>”, where
<exceptionName> is unqualified.
params A pointer to an initialized exception structure value. No copy is made of this
structure; hence, the caller cannot free it. The somExceptionFree function
should be used to free the Environment structure that contains it.
Zobrazit stránku 42
1 2 ... 38 39 40 41 42 43 44 45 46 47 48 ... 423 424

Komentáře k této Příručce

Žádné komentáře