![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: DXL Error Formats Topic Summary: Created On: 23-May-2006 15:46 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
I'm going to write a function that accepts trapped DXL errors, and formats for suitable display to the user. I'd like to get rid of the line of code generating the errors.
---- I'd trap the errors like this: noError() do something string ErrMess = lastError() ---- I'd turn an error like this: -R-W- DXL: <Includes\Lib-Attrs.inc:276> no access to modify attribute 'Object Text' ---- into this: no access to modify attribute 'Object Text' I figured I'd use RegExp. Does anyone know of all the formats of DXL errors? The one above looks like "-R-W- DXL: <any characters>". Others may look like "-i- DXL: <any characters>". - Louie |
|
![]() |
|
![]() |
|
If memory serves, I think the errors are fairly generic. Would it work for you to just parse out the generic portion and capture only the text at the end of the error message?
example... string s = "\\-R\\-W\\- DXL: \\ Regexp re = regexp ".*DXL:.*<.*>(.*)" re s print "Original: " s "\n" print "Printed Error: " s[match 1] |
|
![]() |
|
![]() |
|
Yes, but I don't know the different generic forms. One form is "-R-W- DXL: <name of file> actual message". Yes, RegExp can be used to isolate "actual message".
I was wondering what the other forms might look like, "-I-" for example. |
|
![]() |
|
![]() |
|
I managed to generate the following that all look much the same apart from the backtrace example.
-R-E- DXL: <Line:1> null Object parameter was passed into argument position 1 -I- DXL: execution halted -R-E- DXL: <Line:1> incorrect argument for operator (/), (0) -I- DXL: execution halted -E- DXL: <Line:1> could not open include file (foobar) (No such file or directory) -I- DXL: all done with 1 error and 0 warnings -E- DXL: <Line:2> incorrect arguments for (=) -I- DXL: all done with 1 error and 0 warnings -R-E- DXL: <Line:1> Stack Overflow (current limit is 4096) -I- DXL: execution halted -E- DXL: <n:/dxl/my_dxl_library/locks/test.dxl:38> incorrect arguments for function (vdsShare) Included from: <Line:1> -E- DXL: <n:/dxl/my_dxl_library/locks/test.dxl:38> undeclared variable (s) Included from: <Line:1> -I- DXL: all done with 2 errors and 0 warnings ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
|
![]() |
|
Run time errors, then, seem to be limited to:
[1] -R-W- DXL: <optional path> Message part I care about. [2] -R-E- DXL: <optional path> Message part I care about. Perhaps "-R-E-" means "Runtime Error"; "-R-W-" means "Runtime Access Issue"; "-I" means "Interpreted"; and "-E'" means "Ediot: you cannot type good". - Louie |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
DXL Error Formats
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.