LIBDF: Error Codes

Below is the full list of error codes which can be returned by functions of LIBDF library and their brief description.

 

ERROR

Code

Description

EDF_SUCCESS

0

Successful termination of operation

EDF_BAD_PARAM

1

Incorrect function parameters

EDF_OUT_OF_MEMORY

2

Not enough memory for operation

EDF_FATAL

3

Internal library error

EDF_SYS_ERROR

4

Unexpected system error

Error code can be obtained by GetLastError() call.

EDF_OPEN_ERROR

5

Open file error

EDF_READ_ERROR

6

Read file error

EDF_WRITE_ERROR

7

Write file error

EDF_DF_DAMAGED

8

Patch damaged or not df-file

EDF_ABORTED

9

Operation aborted by user

EDF_NEW_OPEN_ERROR

100

New file open error

EDF_TMP_CREATE_ERROR

101

Temporary file creation error

EDF_DF_UNSUPP_VERSION

111

Unsupported version of the df-file

EDF_DF_UNSUPP_COMPRESSOR

112

Unknown compression method

EDF_ALREADY_PATCHED

120

Attempt to update the already updated file

EDF_OLD_SIZE_UNEXPECTED

121

Impossible to update content

Unexpected size of the old file

EDF_OLD_MD5_ERROR

122

Impossible to update file content

Old file MD5 error

***

Indicates that old file content differs from that one which was used to create df-file

EDF_NEW_MD5_ERROR

123

New file MD5 error

***

This error indicates that new file content was reconstructed incorrectly (mismatched MD5 of new file calculated when building df-file and when reconstructing a new file).

Reasons can be as following:

1. df-file corrupted, though this corruption was not recognized
2. LIBDF library error

EDF_REPLACE_ERROR

124

New file replace error

***

Impossible to perform replacement of already existing new file (it can be occupied by another process or out of system resources).

You can call GetLastError() for details.

EDF_NO_CNTUPD_DATA

125

Impossible to update file content: during comparing process the field iContentUpdateData of structure TDfCmpOptions was set to the value DF_CNTUPD_NONE.

 

Converted from CHM to HTML with chm2web Standard 2.75 (unicode)