# Error handling

**URL:** <https://discuss.rubyonrails.org/t/error-handling/53701>\
**Category:** rubyonrails-core\
**Created:** [August 17, 2010, 9:29pm UTC](https://discuss.rubyonrails.org/t/error-handling/53701 "2010-08-17T21:29:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kenneth\_Ortmann](https://avatars.discourse-cdn.com/v4/letter/k/ea5d25/32.png) [@Kenneth\_Ortmann](https://discuss.rubyonrails.org/u/Kenneth_Ortmann)\
**Post date:** [August 17, 2010, 9:29pm UTC](https://discuss.rubyonrails.org/t/error-handling/53701/1 "2010-08-17T21:29:07Z")

</div>

I’m trying to create an error email notification handler that will send an email to me any time my rails app throws an exception.

I have an exception that is being thrown after redirect\_to is being called and is showing the user the 500 html page. I put these three methods in my application controller and I have log statements in all of them but none of the methods are being called. rescue\_action(exception) rescue\_action\_without\_handler(exception) rescue\_action\_in\_public(exception)

Is there another method that I need to use to rescue this exception so that I can send out an email if it is thrown?

~Kenny
