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 <[email protected]>
wrote:

> 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 event like
> this:
>
> config.add_subscriber(mysubscriber, Exception)
>
> I also know that it is possible to write my own events. So it might be
> possible to write this on my own. Is this possible? Any advices on this?
>
> Torsten
>
> --
> You received this message because you are subscribed to the Google Groups
> "pylons-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/pylons-discuss.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/pylons-discuss.
For more options, visit https://groups.google.com/d/optout.

Reply via email to