我正在努力將UI觸發器中的系統錯誤對象傳播到主程序。從OpenEdge UI觸發器向主程序拋出錯誤
ON CHOOSE OF btnButton IN FRAME frmFrame
DO:
/* this will cause a system error */
FIND FIRST Customer NO-LOCK
WHERE Customer.CustNum = 1875918759178.
CATCH eErr AS Progress.Lang.SysError:
/* It does get caught over here */
UNDO, THROW eErr.
END CATCH.
END.
CATCH eMain AS Progress.Lang.SysError:
/* this message doesn't happen */
MESSAGE
"caught"
VIEW-AS ALERT-BOX.
END CATCH.
雖然它似乎不想傳播錯誤對象。有任何想法嗎?
謝謝。我敢肯定,我可以想出一些彌補它的東西。 – Ivan