xpxDefineErrorCode

FUNCTION xpxDefineErrorCode (errorCode : INTEGER;
                             errorText : STRING;
                             options   : INTEGER) 
                             status    : INTEGER;

Use this function to add a user defined error code to the list of EDMinterface error codes.

Arguments


TypeNameComment
INTEGERerrorCode

specifies a error code.

Note that it's value shall be in range from XPXFIRST_USER_DEFINED_ERROR_CODE to XPXLAST_USER_DEFINED_ERROR_CODE defined in sdai.h (now it is 20000-29999).

Also the error code must not conflict with system error codes, see Windows System Error Codes and Linux System Error Codes

STRINGerrorTextspecifies an error message that corresponds to the given  error code.
INTEGERoptionssee below

Return Value


Error rendering macro 'excerpt-include' : User 'null' does not have permission to view the page 'US:_r_XPX_Return_Value'.

Options


OptionComment
REPLACE_EXISTINGWill replace an existing error code with the one given by the function
DELETE_EXISTINGWill delete the given error code from the system

 

Example


<Missing Example>

 

See also

Filter by label

There are no items with the selected labels at this time.