Re: Error handlers

Johan Brichau <[email protected]> Sat, 1 Aug 2020 20:33:25 +0200
Newsgroups gmane.comp.lang.smalltalk.squeak.seaside
Message-ID <[email protected]>
In addition to ’saving the stack to the objectlog in Gemstone’, we also report the error to sentry.io <http://sentry.io/> using a port of https://github.com/peteruhnak/pharo-sentry <https://github.com/peteruhnak/pharo-sentry>
Although I must say Sentry does not cope too well with the Smalltalk stack trace, there might be some room for improvement.

But there is hardly anything Seaside-specific to it, as you just need to subclass WAExceptionHandler and override the necessary handle methods with whatever you want to export.

Also: serializing the stack (printing) is probably quite different in each Smalltalk dialect. At least I know we have vastly different code between Pharo and GemStone for that.

cheers
Johan

> On 1 Aug 2020, at 19:22, Esteban Maringolo <[email protected]> wrote:
> 
> Hi Jonathan,
> 
> I remember Mariano Martinez (who developed Fuel initially, cc: for the heads up) did something like this while working in the Quuve project, but with GemStone
> I tried to access it but it's in SmalltalkHub and it is down now.
> 
> At this point a text dump of the stacktrace could work.
> 
> Regards!
> 
> Esteban A. Maringolo
> 
> 
> On Sat, Aug 1, 2020 at 2:02 PM Jonathan van Alteren <[email protected] <mailto:[email protected]>> wrote:
> Hi Esteban,
> 
> I've been wanting to do the same, but haven't had the time to implement this yet. However, I did find the following links that will be of use:
> 
> https://marianopeck.blog/2012/01/19/moving-contexts-and-debuggers-between-images-with-fuel/ <https://marianopeck.blog/2012/01/19/moving-contexts-and-debuggers-between-images-with-fuel/>
> https://github.com/ba-st/Launchpad/blob/release-candidate/docs/Debugging.md <https://github.com/ba-st/Launchpad/blob/release-candidate/docs/Debugging.md>
> 
> Some of our fellow Smalltalkers have paved the road for us already ;-)
> 
> I would love to hear about your results!
> 
> 
> Best,
> 
> 
>  <https://objectguild.com/>	
> Jonathan van Alteren
> Founding Member | Object Guild B.V.
> Sustainable Software for Purpose-Driven Organizations
> 
> +316 22500930
> [email protected] <mailto:[email protected]>	
> On 1 Aug 2020, 17:32 +0200, Esteban Maringolo <[email protected] <mailto:[email protected]>>, wrote:
>> Hi all,
>> 
>> Does anybody know about a publicly available Seaside Error handler
>> that serializes the exception to disk (to a configurable location)
>> either in a plaintext format or, ideally, using Fuel?
>> 
>> Thanks!
>> 
>> Esteban A. Maringolo
>> _______________________________________________
>> seaside mailing list
>> [email protected] <mailto:[email protected]>
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside <http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside>
> _______________________________________________
> seaside mailing list
> [email protected] <mailto:[email protected]>
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside <http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside>
> _______________________________________________
> seaside mailing list
> [email protected]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

_______________________________________________
seaside mailing list
[email protected]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside