[Pharo-project] Exception logging

Camillo Bruni camillo.bruni at inria.fr
Mon Jan 16 16:38:36 EST 2012


check Exception >> #outer

	"Evaluate the enclosing exception action and return to here instead of signal if it resumes (see #resumeUnchecked:)."

what you probably want is 

... [ ex signalerContext errorReportOn: file ]

cami

On 2012-01-16, at 19:08, Stéphane Ducasse wrote:

> Hi guys
> 
> when I do the following 
> 
> |file| 
> [ file := StandardFileStream fileNamed: 'loglog.txt'.
> file nextPutAll: 'Start'.
> [ file nextPutAll: (Compiler evaluate: '55 + 88 poipuiu') asString] on: Error do: [:ex | ex outer errorReportOn: file].
> ] ensure: [file close].
> 
> I get a pop up DNU poipuiu while I would like to get the stack on the stream.
> 
> May be my mistake is obvious but I do not see it.
> 
> Stef





More information about the Pharo-dev mailing list