Sha256: f5353f63ceb5c2a7e9ba3d443f42f381b3d956db2e9b7f7f76f1100175905445
Contents?: true
Size: 464 Bytes
Versions: 5
Compression:
Stored size: 464 Bytes
Contents
class HyperResource module Modules module HTTP class WrapErrors < Faraday::Middleware class WrappedError < StandardError attr_reader :method, :err def initialize(method, err) @method = method @err = err end end def call(env) @app.call(env) rescue StandardError => e raise WrappedError.new(env.method, e) end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems