Re: [pylons-discuss] Can I subscribe to an "Exception" event?

2016-03-10 Thread Jonathan Vanasco
On Thursday, March 10, 2016 at 2:34:56 AM UTC-5, Michael Merickel wrote: > > There is no event emitted by Pyramid upon exception right now. You could > emit it yourself by adding a tween UNDER the excview tween that would catch > exceptions, notify subscribers, and then re-raise the exception t

Re: [pylons-discuss] Can I subscribe to an "Exception" event?

2016-03-09 Thread Michael Merickel
There is no event emitted by Pyramid upon exception right now. You could emit it yourself by adding a tween UNDER the excview tween that would catch exceptions, notify subscribers, and then re-raise the exception to be later handled by the excview. On Thu, Mar 10, 2016 at 1:27 AM, Torsten Irländer

[pylons-discuss] Can I subscribe to an "Exception" event?

2016-03-09 Thread Torsten Irländer
Hi, I have a question on exception handling. I know that is is possible to write a view which is called in case of a exception. This is good for me and works. However, is there another way to call some sort of code in case of an exception? I thought of beeing able to subscribe to a Exception ev