[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
The difference in possibility to suppressing errors on block level in THROW and RETURN ERROR BLOCK-LEVEL ON ERROR UNDO, THROW. RUN p IN THIS-PROCEDURE. PROCEDURE p PRIVATE: DO ON ERROR UNDO, THROW: DO ON ERROR UNDO, THROW: RETURN ERROR. // UNDO, THROW NEW Progress.Lang.AppError(). CATCH e AS Progress.Lang.AppError: MESSAGE "Inner block level catch" VIEW-AS ALERT-BOX. UNDO, THROW e. END CATCH. END. CATCH e AS Progress.Lang.AppError: MESSAGE "Outer block level catch" VIEW-AS ALERT-BOX. // Don't re-throw END CATCH. END. 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