lib/httpx/errors.rb in httpx-0.1.0 vs lib/httpx/errors.rb in httpx-0.2.0

- old
+ new

@@ -3,10 +3,12 @@ module HTTPX Error = Class.new(StandardError) TimeoutError = Class.new(Error) + ResolveError = Class.new(Error) + HTTPError = Class.new(Error) do attr_reader :response def initialize(response) @response = response @@ -15,6 +17,8 @@ def status @response.status end end + + MisdirectedRequestError = Class.new(HTTPError) end