Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

DynaPDF Manual - Page 349

Previous Page 348   Index   Next Page 350

Function Reference
Page 349 of 750
GetErrLogMessageCount
Syntax:
SI32 pdfGetErrLogMessageCount(
const PPDF* IPDF) // Instance pointer
The function returns the number of error messages in the internal error log.
GetErrorMessage
Syntax:
char* pdfGetErrorMessage(
const PPDF* IPDF) // Instance pointer
The function returns the last error message as pointer to a null-terminated static string, or NULL if
no error occurred. Use this function if an error callback function can not be used (see also
SetOnErrorProc()).
GetErrorMode
Syntax:
SI32 pdfGetErrorMode(
const PPDF* IPDF) // Instance pointer
typedef SI32 TErrMode;
#define emIgnoreAll
0x00000000 // default
#define emSyntaxError
0x00000001
#define emValueError
0x00000002
#define emWarning
0x00000004
#define emFileError
0x00000008
#define emFontError
0x00000010
#define emAllErrors
0x0000FFFF
#define emNoFuncNames
0x10000000 // Do not output function names
The function returns the current error mode. The return value is a bit mask, to check whether a
specific flag is set use a bitwise and operator.
The special flag emNoFuncNames names can be used to avoid the output of the function name in
error messages. Error messages start normally always with the function name in which the error
occurred. While this information is useful during development, it is often not useful in an end user
application.
The meaning of the error mode flags is described in detail under Customized Exception handling.
 

Previous topic: GetErrLogMessage

Next topic: GetField (obsolete)