22.03.2015 Views

DLI Implementation and Reference Guide - Datalogics

DLI Implementation and Reference Guide - Datalogics

DLI Implementation and Reference Guide - Datalogics

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

16.4 <strong>DLI</strong> <strong>Implementation</strong> <strong>and</strong> <strong>Reference</strong> <strong>Guide</strong><br />

to return the value X, or the E_RTRN_VOID macro to exit a function with no return<br />

value.<br />

Concepts <strong>and</strong> Facilities: <strong>Guide</strong> to the DL Pager Composition System<br />

OS/390 Platform Concerns<br />

The preceding error recovery mechanism applies on the OS/390 platform if the SAS/C<br />

compiler is used. In cases where the OS/390 application is not compiled via SAS/C, it<br />

must use a different mechanism to obtain the error status. This consists of three<br />

primary function calls:<br />

DLExceptionFlag<br />

Returns: ASInt32<br />

DLExceptionFlag returns 0 if no exception was raised by the exception h<strong>and</strong>ler in<br />

the most-recently-called Adobe PDF Library or <strong>DLI</strong> function. A non-zero return<br />

value indicates that an error was detected while processing the last function call.<br />

This error mechanism is destructive, in that the flag value is reset by accessing it with<br />

the DLExceptionFlag function call.<br />

NOTE: If DLExceptionFlag returns a non-zero return code, the return value<br />

of the function in which the error occurred is undefined.<br />

DLExceptionCode<br />

Returns: ASInt32<br />

DLExceptionCode returns the last exception code set by an exception raised by an<br />

Adobe PDF Library or <strong>DLI</strong> function. The code value returned by the<br />

DLExceptionCode function may be used to retrieve an error message via a call to<br />

ASGetErrorString, as documented in the Adobe PDF Library Developer <strong>Guide</strong>.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!