ActiveRecord find exceptions

Sebastian Delmont has an interesting solution for this situations, he
posted it at his blog:

http://www.notsostupid.com/blog/2006/06/28/do-or-do-not-or-maybe-try/

Currently offline, but you can checkit at googles cache:

http://64.233.161.104/search?q=cache:4KIQLnwdpLYJ:www.notsostupid.com/blog/2006/06/28/do-or-do-not-or-maybe-try/+site:www.notsostupid.com+exception&hl=en&ct=clnk&cd=1&client=firefox

Basically what you do is:

module Kernel
  # Returns 'value' in case of an exception, otherwise returns the
execution
  # of the given block
  def try(value = nil)
    yield if block_given?
  rescue Exception => exception
    value
  end
end

Hope this simplies your exception handling for this situations