[Pharo-project] Getting the stack trace for an exception
Hi! I can't find any way of asking an exception it's stacktrace, which I found useful when logging errors... I know the code for it is surely written somewhere, but - I do not know where - wouldn't be ok to move this behaviour to exception/error? (if not, why?) Guille
On 8 March 2012 23:26, Guillermo Polito <guillermopolito@gmail.com> wrote:
Hi!
I can't find any way of asking an exception it's stacktrace, which I found useful when logging errors...
I know the code for it is surely written somewhere, but - I do not know where - wouldn't be ok to move this behaviour to exception/error? (if not, why?)
usually it is a context which having #stack and exception, which having #signalerContext
Guille
-- Best regards, Igor Stasenko.
Yeap, I found that what I want should be something like: exception signalerContext errorReportOn: aStream Thanks! On Thu, Mar 8, 2012 at 7:54 PM, Igor Stasenko <siguctua@gmail.com> wrote:
On 8 March 2012 23:26, Guillermo Polito <guillermopolito@gmail.com> wrote:
Hi!
I can't find any way of asking an exception it's stacktrace, which I found useful when logging errors...
I know the code for it is surely written somewhere, but - I do not know where - wouldn't be ok to move this behaviour to exception/error? (if not, why?)
usually it is a context which having #stack and exception, which having #signalerContext
Guille
-- Best regards, Igor Stasenko.
participants (2)
-
Guillermo Polito -
Igor Stasenko