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.

endtryendtryEndtryEndtryendtry (Operator)

Name

endtryendtryEndtryEndtryendtry — Ends a block where exceptions are handled.

Signature

endtry( : : : )

Herror endtry()

Herror T_endtry()

void Endtry()

static void HOperatorSet.Endtry()

def endtry() -> None

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_checkDevSetCheckDevSetCheckdev_set_check 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_dataDevGetExceptionDataDevGetExceptionDatadev_get_exception_data, dev_set_checkdev_set_checkDevSetCheckDevSetCheckdev_set_check

Module

Foundation