Module: ActiveFedora::DigitalObject::SoftDeleteBehavior
- Included in:
- ActiveFedora::DigitalObject
- 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
84 85 86 87 88 |
# File 'lib/generators/curate/soft_delete/active_fedora_soft_delete_monkey_patch.rb', line 84 def find(*args) super rescue RestClient::Unauthorized => e raise ActiveObjectNotFoundError.new(e, *args) end |