error handling in write trigger not working
Author: firstname.lastname@example.org (lalitpct)
Not sure why in uniface 8.4 ,errror handling in write trigger is not showing expected behaviour.
as shown in the below logs
xI/O function: W, mode: 0, on file/table: mis_postings length: 69 x
xERROR 60093: Country/Branch Closed in static..branches_extra x
x(User raiserror Error=60095) x
x(WRIT) WRIT:4 [-3] if ($status < 0) x
x(WRIT) WRIT:5 [-3] putmess "value is %%$status " x
xvalue is -3 x
x(WRIT) WRIT:6 [-3] message "Store error; see message frame"
database has some error ((User raiserror Error=60095)) while storing which returns [-3] , which i have captured as well.
value captured in $status is -3 but the message is not prompted on the screen.
also the log also seems bit weird meaning normally the logs should be as below
(WRIT) WRIT:4 if ($status < 0) and not (WRIT) WRIT:4 [-3] if ($status < 0)
It seems [-3] disables the normal functioning of the code
Does anyone have an idea about it ?