en:docs:som:api:kernel:somerror

SOMError

This call generates error message and terminates process if fatal error.

Syntax

void (*SOMError) (CORBA_long errorCode, const CORBA_char * fileName, CORBA_long lineNum);

Parameters

  • errorCode (CORBA_long) - input : Error code.
  • fileName (CORBA_char *) - input : Name of source file where error was occurred.
  • lineNum (CORBA_long) - input : Line of source file where error occurred.

Return Code

None

Notes

SOMError is a global variable and can be replaced by user function

Example Code

#include <som.h>
 
SOMError(SOM_Fatal(12), __FILE__, __LINE__);

See also