[Xotcl] generating error stacks messages from xotcl
Artur Trzewik
mail at xdobry.de
Sat Oct 6 14:24:27 CEST 2001
Hallo
For XotclIDE I have built a Error Stack browser witch can parse
error messages (in errorInfo) a convert it to methods list.
I have following problem. Consider the example
Class TestA
TestA instproc fooA {} {
[self] fooC
}
TestA instproc fooB {} {
fooC
}
TestA instproc fooC {} {
error {error from fooC}
}
TestA a
a fooA
generate following errorInfo
error from fooC
while executing
"error {error hier}"
(procedure "fooC" line 2)
::sample0 ::TestA->fooC
invoked from within
"[self] fooC"
(procedure "fooA" line 2)
::sample0 ::TestA->fooA
invoked from within
a fooB # generate following message
error from fooC
while executing
"error {error hier}"
(procedure "fooC" line 2)
invoked from within
"fooC"
(procedure "fooB" line 2)
::sample0 ::TestA->fooB
invoked from within
I the first example we have the lines
(procedure "fooC" line 2)
::sample0 ::TestA->fooC
This can be good used for parsing errorInfo
I the second there are only
(procedure "fooC" line 2)
The same bahavior is by method chains with "next" or filter methods.
Can the xotcl be changed for same dubug infos?
Artur Trzewik
More information about the Xotcl
mailing list