Sha256: ecd526b73d97fb7054f7bfd92739819030ec2a384ee8dad777f2bbfa1a02624f
Contents?: true
Size: 383 Bytes
Versions: 2
Compression:
Stored size: 383 Bytes
Contents
require 'faraday' require 'smartsheet/error' module Smartsheet module API module Middleware class FaradayErrorTranslator < Faraday::Middleware def initialize(app) super(app) end def call(env) @app.call(env) rescue Faraday::Error => e raise Smartsheet::RequestError, e end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems