Hello all!
Unfortunately it is not possible, to define error-handling-options on an "procedure" - Statement.
e.g.
So we have to define one further block, to make the error-handling.
Which makes the structure of internal procedures deeper than we want.
e.g.
What is your way, defining error-handlings on internal procedures?
I would like to structure my Programms in this style:
Thanks in advance!
Erich!
Unfortunately it is not possible, to define error-handling-options on an "procedure" - Statement.
e.g.
Code:
Procedure foo on error undo, return error /* something */:
Which makes the structure of internal procedures deeper than we want.
e.g.
Code:
Procedure foo:
Do on error undo, return error /* something */:
I would like to structure my Programms in this style:
Code:
Main:
Do on error undo, retry:
if retry then
do:
/* log error-messages and return */
...
end.
run sub1.
run sub2.
run sub3.
End.
Erich!