Bug #8643
ErrorManager not handling caught errors and error-status:error attribute properly
Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
Due date:
% Done:
0%
billable:
No
vendor_id:
GCD
case_num:
History
#1 Updated by Dănuț Filimon 16 days ago
- File ignoreerror.p added
- File langerrorcheck.p added
- File raiseerror.p added
- File dset.xml added
This issue is a continuation of #8614 that involves two problems that need to be solved. I've attached 4 files:
- raiseerror.p
- 4GL:
- First error that will popup:
Error reading XML file '<file>.xml'. (13035)
- Second error that will popup:
READ-XML encountered an error while parsing the XML DOcument: FATA ERROR: file '<file>.xml', line '3, column '3', message 'unterminated start tag '<tag>''. (13064)
- Message window containing:
no error raised
- First error that will popup:
- FWD:
- First error that will popup:
Error reading XML file '<file>.xml'. (13035)
- Second error that will popup:
READ-XML encountered an error while parsing the XML DOcument: FATA ERROR: file '<file>.xml', line '3', column '3', message 'Unexpected '<' character in element (missing closing '>'?) at [row,col {unknown-source}]: [3,3]'. (13064)
- Message window containing:
no error raised
- First error that will popup:
- 4GL:
- ignoreerror.p
- 4GL:
- Message window containing:
no Error reading XML file '<file>.xml'. (13035)
- Message window containing:
- FWD:
- Message window containing:
yes Error reading XML file '<file>.xml'. (13035)
- Message window containing:
- 4GL:
- langerrorcheck.p
- 4GL:
- Message window containing 2 errors:
Error reading XML file '<file>.xml'. (13035)
andREAD-XML encountered an error while parsing the XML DOcument: FATA ERROR: file '<file>.xml', line '3, column '3', message 'unterminated start tag '<tag>''. (13064)
- Message window containing 2 errors:
- FWD:
- Message window that contains only 1 error:
Error reading XML file '<file>.xml'. (13035)
- Message window that contains only 1 error:
- 4GL:
- dset.xml: an invalid xml file (has a deleted '>')
- Needs to be placed in
deploy/client/
when working with the first 3 files mentioned. - Alternatively, it is possible to uncomment the
RUN write-schema
from the.p
files, convert, run the test to createdset.xml
and make it invalid by deleting a tag then reconvert withoutRUN write-schema
to not override it.
- Needs to be placed in
These FWD scenarios are only obtainable with the fix from 8614a branch.
There are three objectives for this issue:ignoreerror.p
displayserror-status:error
asno
in 4GL andyes
in FWD. I tried to useErrorManager.recordOrShowError
withisError
flag set tofalse
but this breakslangerrorcheck.p
because instead of themessage window
, it display anerror popup
which is not correct;langerrorcheck.p
only shows the first error in FWD because inErrorManager.recordOrShowError() line 1205
it setsmanageLegacyError
totrue
and throws aDefferedLegacyErrorException
atline 1242
. This results in a single error being thrown and caught;- similar to
DATASET
, testREAD-XML
forTEMP-TABLE
.