In case we hav functions (f_1,....,f_n)
which runs in this order somewhere in the future.
I would like to define a relationship between those functions such that if f_i
failed due to expection then f_i+1,f_i+2,...f_n
shouldn't run also.
Also, the user can cancel f_i
. If he does, then f_i+1,f_i+2,...f_n
shouldn't run also.
I'm trying to determine the status (failed/canceled/something else) of f_i+1,f_i+2,...f_n
incase:
f_i
failed due to exception.f_i
canceled by the user.
Is there any convention?