Bug #5761
replace ErrorManager.displayError with recordOrThrowError and fix recordOrShowError to morph into a recordOrThrowError in certain cases.
0%
Related issues
History
#2 Updated by Constantin Asofiei over 4 years ago
From #5070-16:
From other testing, in the following circumstances this will setThe NPE is because of a
create-like("")call on a temp-table handle. I need to debug OE and find if the temp-table name is really empty at that step... as after fixing the NPE I get error dialogs displayed, but the report completes.The main problem is that
ErrorManager.displayErroris used a lot fromp2j.persistandp2j.utilpackages.From what I tested in this specific
So I need to fix/check two things:create-like("")case, therecordOrShowErrorshould have been used. But, in OE ifblock-level on error undo, throw., anSysErroris raised - and in FWD,recordOrShowErrordoes not do this.
- if
recordOrShowErrormust be used instead ofdisplayError(at least inp2j.persistAPIs related to handle methods/attributes)- fix
recordOrShowErrorto throw a SysError ifblock-level on error undo, throw.is set.
ERROR-STATUS:ERROR to true or raise a legacy OE error (if NO-ERROR is not set):
block-level on error undo, throw.is setON ERROR UNDO, THROWis at the block- a catch block for
progress.lang.syserrorexists at the block
For the last two, we need to check if the catch or ON clause is required to be at the parent block or anywhere on the stacktrace. The idea is that in these cases, OE raises a progress.lang.syserror.
Also, in FWD ErrorManager.displayError is used in a lot of places. I found that for some of them, like usage in p2j.persist temp-table related classes, was incorrectly determined that the error is displayed and not logged if NO-ERROR is used. Although I think there are legitimate cases where displayError must be used, we need to review all usages of this in FWD, and see which are the legitimate ones.
#3 Updated by Greg Shah over 4 years ago
- Related to Feature #4373: finish core OO 4GL support added
#4 Updated by Greg Shah over 4 years ago
- Related to Feature #4352: finish progress.lang.apperror and progress.lang.syserror added
#6 Updated by Constantin Asofiei over 3 years ago
- Related to Bug #6919: fix ErrorManager.displayError in TempTableBuilder added
#7 Updated by Constantin Asofiei over 3 years ago
Added #6919 for the TempTableBuilder/AbstractTempTable cases.
#8 Updated by Eduard Soltan 4 months ago
- Assignee set to Eduard Soltan