ClassesClassesClassesClasses | | | | Operators

Use the tabs on the upper right to switch to a different programming language.

Use the tabs on the upper right to switch to a different programming language.

Use the tabs on the upper right to switch to a different programming language.

Use the tabs on the upper right to switch to a different programming language.

Use the tabs on the upper right to switch to a different programming language.

endtryendtryEndtryendtryEndtryEndtry (Operator)

Name

endtryendtryEndtryendtryEndtryEndtry — Ends a block where exceptions are handled.

Signature

endtry( : : : )

Herror endtry()

Herror T_endtry()

Herror endtry()

void Endtry()

void HOperatorSetX.Endtry()

static void HOperatorSet.Endtry()

Description

With the help of the operators trytryTrytryTryTry, catchcatchCatchcatchCatchCatch, endtryendtryEndtryendtryEndtryEndtry, and throwthrowThrowthrowThrowThrow 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 trytryTrytryTryTry, throwthrowThrowthrowThrowThrow, and dev_set_checkdev_set_checkDevSetCheckdev_set_checkDevSetCheckDevSetCheck as well as in the “HDevelop User's Guide”.

The operator endtryendtryEndtryendtryEndtryEndtry closes the exception handling block that was opened with the operators trytryTrytryTryTry and catchcatchCatchcatchCatchCatch.

Attention

The export of the operators trytryTrytryTryTry, catchcatchCatchcatchCatchCatch, endtryendtryEndtryendtryEndtryEndtry, and throwthrowThrowthrowThrowThrow 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

endtryendtryEndtryendtryEndtryEndtry always returns 2 (H_MSG_TRUE).

See also

trytryTrytryTryTry, catchcatchCatchcatchCatchCatch, throwthrowThrowthrowThrowThrow, dev_get_exception_datadev_get_exception_dataDevGetExceptionDatadev_get_exception_dataDevGetExceptionDataDevGetExceptionData, dev_set_checkdev_set_checkDevSetCheckdev_set_checkDevSetCheckDevSetCheck

Module

Foundation


ClassesClassesClassesClasses | | | | Operators