module ActiveFedora::DigitalObject::SoftDeleteBehavior

Application level enforcement of finding a DELETE_STATE object

Public Instance Methods

find(*args) click to toggle source

Because I don't want to be handling RestClient::Unauthorized in a controller, I want to change the exception to a more meaningful exception

Calls superclass method
# File lib/generators/curate/soft_delete/active_fedora_soft_delete_monkey_patch.rb, line 90
def find(*args)
  super
rescue RestClient::Unauthorized => e
  raise ActiveObjectNotFoundError.new(e, *args)
end