17.05.2014 Views

PDFlib Text Extraction Toolkit (TET) Manual

PDFlib Text Extraction Toolkit (TET) Manual

PDFlib Text Extraction Toolkit (TET) Manual

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.

10.3 Exception Handling<br />

C++ string get_apiname( )<br />

C# Java String get_apiname( )<br />

Perl PHP string <strong>TET</strong>_get_apiname(resource tet)<br />

VB Function get_apiname( ) As String<br />

C const char *<strong>TET</strong>_get_apiname(<strong>TET</strong> *tet)<br />

Get the name of the API function which caused an exception or failed.<br />

Returns<br />

The name of the function which threw an exception, or the name of the most recently<br />

called function which failed with an error code. An empty string will be returned if<br />

there was no error.<br />

C++ string get_errmsg( )<br />

C# Java String get_errmsg( )<br />

Perl PHP string <strong>TET</strong>_get_errmsg(resource tet)<br />

VB Function get_errmsg( ) As String<br />

C const char *<strong>TET</strong>_get_errmsg(<strong>TET</strong> *tet)<br />

Get the text of the last thrown exception or the reason for a failed function call.<br />

Returns<br />

<strong>Text</strong> containing the description of the last exception thrown, or the reason why the<br />

most recently called function failed with an error code. An empty string will be returned<br />

if there was no error.<br />

C++ int get_errnum( )<br />

C# Java int get_errnum( )<br />

Perl PHP long <strong>TET</strong>_get_errnum(resource tet)<br />

VB Function get_errnum( ) As Long<br />

C int <strong>TET</strong>_get_errnum(<strong>TET</strong> *tet)<br />

Get the number of the last thrown exception or the reason for a failed function call.<br />

Returns<br />

The number of an exception, or the error code of the most recently called function<br />

which failed with an error code. This function will return 0 if there was no error.<br />

C<br />

C<br />

C<br />

C<br />

<strong>TET</strong>_TRY(tet)<br />

<strong>TET</strong>_CATCH(tet)<br />

<strong>TET</strong>_RETHROW(tet)<br />

<strong>TET</strong>_EXIT_TRY(tet)<br />

Set up an exception handling block; catch or rethrow an exception; or inform the exception<br />

machinery that a <strong>TET</strong>_TRY( ) block will be left without entering the corresponding<br />

10.3 Exception Handling 127

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

Saved successfully!

Ooh no, something went wrong!