Ignoring Exceptions

Xavier Shay's Avatar

Xavier Shay

21 Oct, 2010 11:41 PM

My app is raising a DataMapper::ObjectNotFoundError, equivalent to ActiveRecord::RecordNotFound. I want this to 404. Previously using exception mailer I added it to a list of ignored exceptions. How do I do this with the exceptional gem? (Rails 3)


  1. 1 Posted by Ciaran Lee on 26 Oct, 2010 02:19 PM

    Ciaran Lee's Avatar

    Hi Xavier,

    Exceptions are ignored through the web app, rather than in a config file. To ignore an exception, either click the ignore button on the exception page, or on exceptions/index page select a bunch of exceptions and then hit the ignore button.

    I hope this helps,
    Ciaran Lee

  2. Ciaran Lee closed this discussion on 26 Oct, 2010 02:19 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac