Sha256: 3c989b8db168afe7db4b190faad1cc08c33d617d34d6c9ff0db3b383e1c405be
Contents?: true
Size: 386 Bytes
Versions: 3
Compression:
Stored size: 386 Bytes
Contents
module OpConnect # Faraday response middleware # module Response # This class raises an OpConnect-flavored exception based on HTTP status # codes returned by the API. # class RaiseError < Faraday::Middleware def on_complete(response) if (error = OpConnect::Error.from_response(response)) raise error end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
op_connect-0.1.3 | lib/op_connect/response/raise_error.rb |
op_connect-0.1.2 | lib/op_connect/response/raise_error.rb |
op_connect-0.1.1 | lib/op_connect/response/raise_error.rb |