Sha256: a29909204108ea4c046ebf16fa2cc2e669dbd313f1f52ce7f57a8671e05db2d5
Contents?: true
Size: 412 Bytes
Versions: 43
Compression:
Stored size: 412 Bytes
Contents
# frozen_string_literal: true module Dor module Services class Client # This wraps any faraday connection errors with dor-services-client errors class ErrorFaradayMiddleware < Faraday::Middleware def call(env) @app.call(env) rescue Faraday::ConnectionFailed raise ConnectionFailed, 'unable to reach dor-services-app' end end end end end
Version data entries
43 entries across 43 versions & 1 rubygems