CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Thu, 07 Aug 2025 06:42:11 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20100403202827
location: https://web.archive.org/web/20100403202827/https://github.com/rails/exception_notification
server-timing: captures_list;dur=0.603355, exclusion.robots;dur=0.023391, exclusion.robots.policy;dur=0.011377, esindex;dur=0.009764, cdx.remote;dur=45.509379, LoadShardBlock;dur=658.821944, PetaboxLoader3.datanode;dur=182.332164, PetaboxLoader3.resolve;dur=151.482241
x-app-server: wwwb-app210
x-ts: 302
x-tr: 769
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app210; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Thu, 07 Aug 2025 06:42:12 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.7.61
x-archive-orig-date: Sat, 03 Apr 2010 20:28:27 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-etag: "a6d754706568ea56bb8be35cb27cf1d2"
x-archive-orig-x-runtime: 146ms
x-archive-orig-content-length: 21947
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Sat, 03 Apr 2010 20:28:27 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Thu, 18 Dec 2008 14:39:40 GMT", ; rel="prev memento"; datetime="Mon, 08 Mar 2010 20:14:42 GMT", ; rel="memento"; datetime="Sat, 03 Apr 2010 20:28:27 GMT", ; rel="next memento"; datetime="Tue, 20 Apr 2010 02:54:21 GMT", ; rel="last memento"; datetime="Wed, 12 Mar 2025 21:02:29 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 51_15_20100403094815_crawl103_IndexOnly-c/51_15_20100403202755_crawl101.arc.gz
server-timing: captures_list;dur=0.730153, exclusion.robots;dur=0.027379, exclusion.robots.policy;dur=0.012375, esindex;dur=0.013256, cdx.remote;dur=7.199503, LoadShardBlock;dur=562.558256, PetaboxLoader3.datanode;dur=225.488389, PetaboxLoader3.resolve;dur=1069.421040, load_resource;dur=832.302863
x-app-server: wwwb-app210
x-ts: 200
x-tr: 1482
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
rails's exception_notification at master - GitHub
rails / exception_notification
- Source
- Commits
- Network (85)
- Graphs
-
Branch:
master
click here to add a description
click here to add a homepage
name | age | message | |
---|---|---|---|
![]() |
README | Fri Apr 02 01:37:17 -0700 2010 | add link in README to lighthouse for tickets [timocratic] |
![]() |
exception_notifier.gemspec | Sat Mar 13 14:09:20 -0800 2010 | gemspec for pushing to gemcutter as exception_n... [timocratic] |
![]() |
lib/ | Sat Mar 13 13:52:32 -0800 2010 | Uses the new ActionMailer API from Rails 3.0. E... [jcxplorer] |
README
= Exception Notifier Plugin for Rails The Exception Notifier plugin provides a mailer object and a default set of templates for sending email notifications when errors occur in a Rails application. The plugin is configurable, allowing programmers to specify: * the sender address of the email * the recipient addresses * the text used to prefix the subject line The email includes information about the current request, session, and environment, and also gives a backtrace of the exception. == Usage As of Rails 3 ExceptionNotifier is used as a rack middleware Whatever::Application.config.middleware.use ExceptionNotifier, :email_prefix => "[Whatever] ", :sender_address => %{"notifier" <notifier@example.com>}, :exception_recipients => %w{exceptions@example.com} == Customization By default, the notification email includes four parts: request, session, environment, and backtrace (in that order). You can customize how each of those sections are rendered by placing a partial named for that part in your app/views/exception_notifier directory (e.g., _session.rhtml). Each partial has access to the following variables: * @controller: the controller that caused the error * @request: the current request object * @exception: the exception that was raised * @backtrace: a sanitized version of the exception's backtrace * @data: a hash of optional data values that were passed to the notifier * @sections: the array of sections to include in the email You can reorder the sections, or exclude sections completely, by altering the ExceptionNotifier.sections variable. You can even add new sections that describe application-specific data--just add the section's name to the list (whereever you'd like), and define the corresponding partial. Then, if your new section requires information that isn't available by default, make sure it is made available to the email using the exception_data macro: class ApplicationController < ActionController::Base before_filter :log_additional_data ... protected def log_additional_data request.env["exception_notifier.exception_data"] = { :document => @document, :person => @person } end ... end In the above case, @document and @person would be made available to the email renderer, allowing your new section(s) to access and display them. See the existing sections defined by the plugin for examples of how to write your own. == Rails 2.3 stable and earlier If you are running Rails 2.3 then see the branch for that: https://github.com/rails/exception_notification/tree/2-3-stable If you are running pre-rack Rails then see this tag: https://github.com/rails/exception_notification/tree/pre-2-3 == Support and tickets https://rails.lighthouseapp.com/projects/8995-rails-plugins Copyright (c) 2005 Jamis Buck, released under the MIT license