View · Search · Index
No registered users in community xowiki
in last 10 minutes

[Xotcl] generating error stacks messages from xotcl

From: Artur Trzewik <mail_at_xdobry.de>
Date: Sat, 6 Oct 2001 14:24:27 +0200

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