Sha256: 60df93cbb5aca1c55ff642aa65f9ed1b973797e17c7af598194b6d10fffbe41a

Contents?: true

Size: 491 Bytes

Versions: 6

Compression:

Stored size: 491 Bytes

Contents

# typed: ignore

# Copyright (c) 2015 Sqreen. All Rights Reserved.
# Please refer to our terms for more information: https://www.sqreen.com/terms.html

module Sqreen
  module Kit
    class HttpClient
      class UnexpectedStatusError < StandardError
        attr_reader :code, :body

        def initialize(code, body = nil)
          @code = code
          @body = body
        end

        def message
          "Unexpected status #{code}: #{body}"
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sqreen-kit-0.2.4 lib/sqreen/kit/http_client/unexpected_status_error.rb
sqreen-kit-0.2.3 lib/sqreen/kit/http_client/unexpected_status_error.rb
sqreen-kit-0.2.2 lib/sqreen/kit/http_client/unexpected_status_error.rb
sqreen-kit-0.2.1 lib/sqreen/kit/http_client/unexpected_status_error.rb
sqreen-kit-0.2.0 lib/sqreen/kit/http_client/unexpected_status_error.rb
sqreen-kit-0.1.1 lib/sqreen/kit/http_client/unexpected_status_error.rb