Routines for error processing.
◆ HPDF_FAILD_TO_ALLOC_MEM
#define HPDF_FAILD_TO_ALLOC_MEM 0x1015 |
Memory allocation failed.
- Todo:
- Deprecate and rename constant
◆ HPDF_FILE_IO_ERROR
#define HPDF_FILE_IO_ERROR 0x1016 |
An error occurred while processing file I/O.
◆ HPDF_INVALID_DOCUMENT
#define HPDF_INVALID_DOCUMENT 0x1025 |
Document object handle is not valid.
◆ HPDF_CheckError()
Check error code.
Function returns error code if it is not equal to HPDF_OK. If error code is not equal to HPDF_OK and error handler is set, then error handler is called.
- Parameters
-
- Returns
- Error code from
error
parameter.
◆ HPDF_GetError()
Return the last error code of specified document object.
- Parameters
-
pdf | Document object handle. |
- Returns
- Last error code of document object, or HPDF_OK if no last error.
◆ HPDF_ResetError()
Cleanup document error.
Once an error code is set, IO processing functions cannot be invoked. In case of executing a function after the cause of the error is fixed, an application has to invoke HPDF_ResetError() to clear error-code before executing functions.
- Parameters
-
pdf | Document object handle. |