endtry
— Ends a block where exceptions are handled.
endtry( : : : )
With the help of the operators try
, catch
, endtry
,
and throw
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 try
, throw
, and
dev_set_check
as well as in the “HDevelop User's Guide”
.
The operator endtry
closes the exception handling block that was
opened with the operators try
and catch
.
The export of the operators try
, catch
, endtry
,
and throw
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.
endtry
always returns TRUE.
try
,
catch
,
throw
,
dev_get_exception_data
,
dev_set_check
Foundation