ClassesClasses | | Operators

Page not available for the currently selected syntax (programming language).

Page not available for the currently selected syntax (programming language).

Page not available for the currently selected syntax (programming language).

endtryendtryEndtryEndtry (Operator)

Name

endtryendtryEndtryEndtry — Ends a block where exceptions are handled.

Signature

endtry( : : : )

Herror endtry()

Herror T_endtry()

void Endtry()

static void HOperatorSet.Endtry()

Description

With the help of the operators trytryTryTryTry, catchcatchCatchCatchCatch, endtryendtryEndtryEndtryEndtry, and throwthrowThrowThrowThrow it is possible to implement a dynamic exception handling in HDevelop, which is comparable to the exception handling in C++ and C#. The basic concepts of the exception handling in HDevelop are described at the operators trytryTryTryTry, throwthrowThrowThrowThrow, and dev_set_checkdev_set_checkDevSetCheckDevSetCheckDevSetCheck as well as in the “HDevelop User's Guide”.

The operator endtryendtryEndtryEndtryEndtry closes the exception handling block that was opened with the operators trytryTryTryTry and catchcatchCatchCatchCatch.

Attention

The export of the operators trytryTryTryTry, catchcatchCatchCatchCatch, endtryendtryEndtryEndtryEndtry, and throwthrowThrowThrowThrow is not supported for the language C, but only for the languages C++, C# and VisualBasic/.NET. Only the latter support throwing exceptions across procedure.

Result

endtryendtryEndtryEndtryEndtry always returns 2 (H_MSG_TRUE).

See also

trytryTryTryTry, catchcatchCatchCatchCatch, throwthrowThrowThrowThrow, dev_get_exception_datadev_get_exception_dataDevGetExceptionDataDevGetExceptionDataDevGetExceptionData, dev_set_checkdev_set_checkDevSetCheckDevSetCheckDevSetCheck

Module

Foundation


ClassesClasses | | Operators