Sha256: d845e70c02681f52e579f5e0d2628c8ead8a82684710f6c9aefb1afaeab9fb67

Contents?: true

Size: 552 Bytes

Versions: 25

Compression:

Stored size: 552 Bytes

Contents

# frozen_string_literal: true
module Hyrax
  module Fixity
    ##
    # Wraps `ActiveFedora::FixityService` to avoid leaking Fedora-specific errors.
    #
    # @see ActiveFedora::FixityService
    class ActiveFedoraFixityService < ActiveFedora::FixityService
      ##
      # @raise MissingContentError
      # @see ActiveFedora::FixityService#response
      def response
        super
      rescue Ldp::NotFound
        raise MissingContentError,
              "Tried to check fixity of #{@target}, but it was not found."
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
hyrax-5.0.1 app/services/hyrax/fixity/active_fedora_fixity_service.rb
hyrax-5.0.0 app/services/hyrax/fixity/active_fedora_fixity_service.rb
hyrax-5.0.0.rc3 app/services/hyrax/fixity/active_fedora_fixity_service.rb
hyrax-5.0.0.rc2 app/services/hyrax/fixity/active_fedora_fixity_service.rb
hyrax-5.0.0.rc1 app/services/hyrax/fixity/active_fedora_fixity_service.rb
hyrax-3.6.0 app/services/hyrax/fixity/active_fedora_fixity_service.rb
hyrax-4.0.0 app/services/hyrax/fixity/active_fedora_fixity_service.rb
hyrax-4.0.0.rc3 app/services/hyrax/fixity/active_fedora_fixity_service.rb
hyrax-4.0.0.rc2 app/services/hyrax/fixity/active_fedora_fixity_service.rb
hyrax-4.0.0.rc1 app/services/hyrax/fixity/active_fedora_fixity_service.rb
hyrax-3.5.0 app/services/hyrax/fixity/active_fedora_fixity_service.rb
hyrax-4.0.0.beta2 app/services/hyrax/fixity/active_fedora_fixity_service.rb
hyrax-3.4.2 app/services/hyrax/fixity/active_fedora_fixity_service.rb
hyrax-4.0.0.beta1 app/services/hyrax/fixity/active_fedora_fixity_service.rb
hyrax-3.4.1 app/services/hyrax/fixity/active_fedora_fixity_service.rb
hyrax-3.4.0 app/services/hyrax/fixity/active_fedora_fixity_service.rb
hyrax-3.3.0 app/services/hyrax/fixity/active_fedora_fixity_service.rb
hyrax-3.2.0 app/services/hyrax/fixity/active_fedora_fixity_service.rb
hyrax-3.1.0 app/services/hyrax/fixity/active_fedora_fixity_service.rb
hyrax-3.0.2 app/services/hyrax/fixity/active_fedora_fixity_service.rb