search for: deliver_exception_notification

Displaying 7 results from an estimated 7 matches for "deliver_exception_notification".

2006 Feb 16
3
rescue_action_in_public question
...quot;) render(:file => "#{RAILS_ROOT}/public/404.html", :status => "404 Not Found") else logger.error("500 displayed") render(:file => "#{RAILS_ROOT}/public/500.html", :status => "500 Error") SystemNotifier.deliver_exception_notification(self, request, exception) end end It works great when the exception thrown is ActiveRecord::RecordNotFound. It calls rescue_action_in_public and logs everything as expected. If I ask it to send me an email about it, it does that too. But it is not working for ActionController::Routin...
2008 Mar 04
2
Action Mailer throwing underscores on template name
...3.6/lib/action_mailer/ base.rb:333:in `method_missing'' /var/rails/nick_warren/releases/20080303165433/vendor/plugins/ exception_notification/lib/exception_notifiable.rb:95:in `rescue_action_in_public'' obviously this comes from the exception notifier plugin: ExceptionNotifier.deliver_exception_notification(exception, self, request, data) Has anybody else seen this? Any ideas on how to get this working? Thanks, Andrew --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this...
2006 Nov 08
0
routing error does not get caught by rescue_action_in_public
...gError logger.warn("rendering 404 page") render(:file => "#{RAILS_ROOT}/public/404.html", :layout => ''layouts/application'', :status => "404 Not Found") #SystemNotifier.deliver_exception_notification( # self, request, exception) else logger.warn("rendering 500 page") render(:file => "#{RAILS_ROOT}/public/500.html", :layout => ''layouts/application'', :status => &quo...
2006 Mar 07
17
Handling Erros from AWDWR
...UnknownAction render(:file => "#{RAILS_ROOT}/public/404.html", :status => "404 Not Found") else render(:file => "#{RAILS_ROOT}/public/500.html", :status => "500 Error") SystemNotifier.deliver_exception_notification( self, request, exception) end end end and copied the file...app/models/system_notifier.rb changing the first line ''pathname'' to the actual path to the base of my ruby application and then finally copied the file and folder for system_notifier...into app/vi...
2006 Jul 04
0
ActionController::UnknownAction hangs application
...render( :file => "#{RAILS_ROOT}/public/404.html", :status => "404 Not Found") else render( :file => "#{RAILS_ROOT}/public/500.html", :status => "500 Error") email = SystemNotifier.deliver_exception_notification( self, request, exception) end end If I change line 3 to when ActiveRecord::RecordNotFound everything works just fine. This suggests that the application is choking while comparing exception.class (which can be anything, I''ve tried both core and user errors)...
2007 Nov 14
2
Exception Notification plugin options hash handling????? backwards merge?
...the daemon code. At first it looked easy. I just needed to ''mock'' some methods so that I could mimic the controller, and (as it turned out the request since there wasn''t one). it looked like I could set the sections list and the host by calling: ExceptionNotifier.deliver_exception_notification( exception, self, # Controller nil, # Request :host => "localhost", :sections => %w(environment backtrace) ) Thinking that the code in ExceptionNotifier#exception_notification would prefer the values in the options hash parameter over wha...
2007 Dec 28
9
lost connection 2.0
I lost my "connection lost" error.. but now I''ve got a "Mysql::Error: MySQL server has gone away" error.. It comes from: /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.6/lib/active_record/connection_adapters/abstract_adapter.rb:128:in ''log''. I''m not sure if Rails / BackgroundRb uses it .. but i''ve got the mysql (2.7) gem