lib/shutl/resource/errors.rb in shutl_resource-1.2.0 vs lib/shutl/resource/errors.rb in shutl_resource-1.3.0

- old
+ new

@@ -1,11 +1,9 @@ class Shutl::Resource::Error < ::IOError - attr_reader :response + attr_reader :body, :status - def initialize message, http_response - @response = http_response - - super message #it really is rather spot on, why thanks for saying, kind sir. + def initialize body, status + @body, @status = body, status end end # This NoQuotesGenerated is shutl specific corresponding to HTTP status 299. # The correct solution to this would be to remove this exception from the gem