Module: ActiveFedora::DigitalObject::SoftDeleteBehavior
- Defined in:
- lib/generators/curate/soft_delete/active_fedora_soft_delete_monkey_patch.rb
Overview
Application level enforcement of finding a DELETE_STATE object
Instance Method Summary collapse
-
#find(*args) ⇒ Object
Because I don’t want to be handling RestClient::Unauthorized in a controller, I want to change the exception to a more meaningful exception.
Instance Method Details
#find(*args) ⇒ Object
Because I don’t want to be handling RestClient::Unauthorized in a controller, I want to change the exception to a more meaningful exception
90 91 92 93 94 |
# 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 |