re_ErrorText und re_wErrorText
typedef struct re_ErrorText_tag {
XXX_ERROR ident;
char program[RE_ERROR_PROGRAM_LEN];
char text[RE_ERROR_TEXT_LEN];
char systext[RE_ERROR_TEXT_LEN];
long private_data;
} re_ErrorText;
typedef struct re_wErrorText_tag {
XXX_ERROR ident;
wchar_t program[RE_ERROR_PROGRAM_LEN];
wchar_t text[RE_ERROR_TEXT_LEN];
wchar_t systext[RE_ERROR_TEXT_LEN];
long private_data;
} re_wErrorText;
Elements:
ident
- Specification of the error type.
RE_...
RE_SUCCESS | Return value in case of success. |
RE_QUIT | Canceled by the user. |
RE_WARNING | Warning (without further consequences). |
RE_ERROR | General error in the program flow. |
RE_INFO | Return a clear text information. |
Typical errors in the program sequence are additionally characterized. |
RE_PARAMETERERROR | Faulty parameter supply of a function. |
RE_MEMORYERROR | Memory shortage or incorrect pointers to the memory to be provided. |
RE_FILEERROR | Error by opening, reading, writing, or closing a file. |
RE_PROTECTERROR | Unlicensed XXX version. |
program
- Name of the procedure where the error occurred.
text
- Text describing the error.
systext
- Operating system error text (if there is any).
private_data
- Value set by the user (see
re_SetPrivateData()
).
Reference: