SOMError

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

Syntax

void (*SOMError) (int errorCode, string fileName, int lineNum);

Parameters

errorCode (int) - input : Error code.

fileName (string) - input : Name of source file where error was occurred.

lineNum (int) - 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

SOM_Assert Macro SOM_Error Macro SOM_Expect Macro SOM_Test Macro SOM_TestC Macro SOM_WarnMsg Macro