on wish: central "on Procerror" Handling
Author: ulrichmerkel@web.de (ulrich-merkel)
Hi Rik (reply to uniface.communityzero.com/content/lists )
On one hand, a centralised "on procerror" sounds nice.
But I miss a way to include the context where the procerror occured.
Not as the context itself, but in the evaluation which actions needs to be taken.
An example:
it depends on the context
if $status of -2 or -4 after a retrieve
is an error or just an info.
I use a set of include procs after each call/activate to define what to do:
#include check_status:abort
#include check_status:give_info
#include check_status:log_only
#include check_status:ignore
They require only a single line and a codereview shows clear information
what is expected to be done by the application.
Success, Uli
P.S. the alternative would be someting like:
"#onerror resume/skip/abort/next"
but I would put this declarative always in front of each command
because some code-writer my put a different declarativ between my ones.



