Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

The ErrorCode Service Class

The service class ErrorCode is used to record errors that occur doing processing operations. These errors can occur within any class; therefore, to avoid circular references, this class is completely self-contained. There is a setter ErrorCode_SetCode and a getter ErrorCode_GetCode available for use via the engine-based facilities of the system. It can also be set and accessed -- i.e., tested -- directly via the global field ErrorCode_Value.

The field ErrorCode_Value

Prototype


extern int ErrorCode_Value;
The ErrorCode_Value field contains the current value of the processing error code.

The method ErrorCode_GetCode

Prototype


int ErrorCode_GetCode(void);
The ErrorCode_GetCode method returns the current value of the processing error code.

The method ErrorCode_SetCode

Prototype


void ErrorCode_SetCode(int errorCode);
The ErrorCode_SetCode method sets the processing error code to the specified value. Its parameter is:

Parameter Description
errorCode Specifies the new value of the processing error code.


Table of Contents

  • No labels