I
Imobach González Sosa
Hi all,
We're interested in doing some backtracing in our code, but not just
the "filename:line in method" thing, we'd like to retrieve the status
of each object referenced.
For example, we have three objects A, B and C. A calls a B's method
and B calls an C's method. That's ok. But the C methods raises and
exception. At A, we could get a backtrace containing files, lines and
methods called. But, what about some extra info as, for example, B
status?
We've implemented such a thing using begin-end-rescue in all those
called methods, so in the rescue they do some extra work to register
the status. Ok?
But write a lot of methods with begin-end-rescue could be painful, at
least for me.
Does anybody understand me? ;-) Any idea about it?
Sorry if the question sounds stupid
Thank you all in advance.
We're interested in doing some backtracing in our code, but not just
the "filename:line in method" thing, we'd like to retrieve the status
of each object referenced.
For example, we have three objects A, B and C. A calls a B's method
and B calls an C's method. That's ok. But the C methods raises and
exception. At A, we could get a backtrace containing files, lines and
methods called. But, what about some extra info as, for example, B
status?
We've implemented such a thing using begin-end-rescue in all those
called methods, so in the rescue they do some extra work to register
the status. Ok?
But write a lot of methods with begin-end-rescue could be painful, at
least for me.
Does anybody understand me? ;-) Any idea about it?
Sorry if the question sounds stupid
Thank you all in advance.