method

handle_errors

handle_errors()
private

No documentation available.

# File activestorage/lib/active_storage/service/azure_storage_service.rb, line 177
      def handle_errors
        yield
      rescue Azure::Core::Http::HTTPError => e
        case e.type
        when "BlobNotFound"
          raise ActiveStorage::FileNotFoundError
        when "Md5Mismatch"
          raise ActiveStorage::IntegrityError
        else
          raise
        end
      end