Sha256: aa225f77ff613f087d276142e11ec4834952c41d7fbb5c1f05d0dd2633fb5a6c
Contents?: true
Size: 344 Bytes
Versions: 3
Compression:
Stored size: 344 Bytes
Contents
# frozen_string_literal: true module HTTPX Error = Class.new(StandardError) TimeoutError = Class.new(Error) HTTPError = Class.new(Error) do attr_reader :response def initialize(response) @response = response super("HTTP Error: #{@response.status}") end def status @response.status end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
httpx-0.1.0 | lib/httpx/errors.rb |
httpx-0.0.5 | lib/httpx/errors.rb |
httpx-0.0.4 | lib/httpx/errors.rb |