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 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 Gamble wrote:> 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 >-- Sincerely, William Pratt --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
...err...re"raise" it to be more rubyish :) William Pratt wrote:> 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 Gamble wrote: > >> 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 >> >> > >-- Sincerely, William Pratt --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---