[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: PASOE still makes mysterious distinction between RETURN ERROR CH-Error versus UNDO THRO

Status
Not open for further replies.
T

Torben

Guest
Beside the behaviour when called from .Net Open Client. The thing that puzzled me the most when moving from classic to structured error handling, was the difference in when catch block is executed! RETURN ERROR, dont execute CATCH in in procedure where statement is executed, but UNDO, THROW do! RUN p. PROCEDURE p PRIVATE: RETURN ERROR. //UNDO, THROW NEW Progress.Lang.AppError(). CATCH e AS Progress.Lang.AppError: MESSAGE "Internal procedure level catch" VIEW-AS ALERT-BOX. UNDO, THROW e. END CATCH. END PROCEDURE. CATCH e AS Progress.Lang.AppError: MESSAGE "Global procedure level catch" VIEW-AS ALERT-BOX. UNDO, THROW e. END CATCH.

Continue reading...
 
Status
Not open for further replies.
Top