# "Pushing" errors to ExceptionNotifier plugin

**URL:** <https://www.ruby-forum.com/t/pushing-errors-to-exceptionnotifier-plugin/116357>\
**Category:** Rails\
**Created:** [October 4, 2007, 7:16pm UTC](https://www.ruby-forum.com/t/pushing-errors-to-exceptionnotifier-plugin/116357 "2007-10-04T19:16:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![weyus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/7ab992/32.png) [@weyus](https://www.ruby-forum.com/u/weyus)\
**Post date:** [October 4, 2007, 7:16pm UTC](https://www.ruby-forum.com/t/pushing-errors-to-exceptionnotifier-plugin/116357/1 "2007-10-04T19:16:03Z")

</div>

All,

I’m using ExceptionNotifier to send me emails of unexpected errors in my  
production app.

But I’d like to “push” certain exceptions which I’ve caught but would  
still like to get an ExceptionNotifier type email for.

Is there a way for me to explicitly “push” a caught exception to  
ExceptionNotifier?

Thanks,  
Wes

---

<div class="post-metadata">

**Author:** ![weyus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/7ab992/32.png) [@weyus](https://www.ruby-forum.com/u/weyus)\
**Post date:** [October 4, 2007, 7:23pm UTC](https://www.ruby-forum.com/t/pushing-errors-to-exceptionnotifier-plugin/116357/2 "2007-10-04T19:23:52Z")

</div>

There may be another way, but I believe you will have to rethrow the  
exception, then override rescue\_action\_in\_public in application.rb to do  
what you want after the notification is sent.

Wes G. wrote:

> Thanks,  
> Wes

–  
Sincerely,

William P.

---

<div class="post-metadata">

**Author:** ![weyus](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/7ab992/32.png) [@weyus](https://www.ruby-forum.com/u/weyus)\
**Post date:** [October 4, 2007, 7:25pm UTC](https://www.ruby-forum.com/t/pushing-errors-to-exceptionnotifier-plugin/116357/3 "2007-10-04T19:25:38Z")

</div>

…err…re"raise" it to be more rubyish 🙂

William P. wrote:

> >

–  
Sincerely,

William P.
