HALCON Reference Manual 10.0.2
Table of Contents / Control ClassesClassesClasses | | | 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).

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

endtryendtryendtryEndtryEndtry (Operator)

Name

endtryendtryendtryEndtryEndtry — Ends a block where exceptions are handled.

Signature

endtry( : : : )

Herror endtry()

Herror T_endtry()

Herror endtry()

void HOperatorSetX.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_checkdev_set_checkDevSetCheckDevSetCheck 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 languages C and VisualBasic 6.0, 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_datadev_get_exception_dataDevGetExceptionDataDevGetExceptionData, dev_set_checkdev_set_checkdev_set_checkDevSetCheckDevSetCheck

Module

Foundation


Table of Contents / Control ClassesClassesClasses | | | Operators
HALCON Reference Manual 10.0.2 Copyright © 1996-2011 MVTec Software GmbH