Sha256: ba4ff6daa4ccfa751421287433eb7834d71294e03ea730df1cf2caa4e6e89a16

Contents?: true

Size: 1.06 KB

Versions: 21

Compression:

Stored size: 1.06 KB

Contents

class Shutl::Resource::Error < ::IOError
  attr_reader :response

  def initialize message, http_response
    @response = http_response

    super message #it really is rather spot on, why thanks for saying, kind sir.
  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
# and handle specifically in a QuoteCollection resource in for example the
# 'shutl' gem.
Shutl::NoQuotesGenerated  = Class.new Shutl::Resource::Error

Shutl::BadRequest         = Class.new Shutl::Resource::Error
Shutl::UnauthorizedAccess = Class.new Shutl::Resource::Error
Shutl::ForbiddenAccess    = Class.new Shutl::Resource::Error
Shutl::ResourceNotFound   = Class.new Shutl::Resource::Error
Shutl::ResourceConflict   = Class.new Shutl::Resource::Error
Shutl::ResourceGone       = Class.new Shutl::Resource::Error
Shutl::ResourceInvalid    = Class.new Shutl::Resource::Error
Shutl::ServerError        = Class.new Shutl::Resource::Error
Shutl::ServiceUnavailable = Class.new Shutl::Resource::Error


Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
shutl_resource-1.2.0 lib/shutl/resource/errors.rb
shutl_resource-1.1.1 lib/shutl/resource/errors.rb
shutl_resource-1.1.0 lib/shutl/resource/errors.rb
shutl_resource-1.0.0 lib/shutl/resource/errors.rb
shutl_resource-0.11.4 lib/shutl/resource/errors.rb
shutl_resource-0.11.3 lib/shutl/resource/errors.rb
shutl_resource-0.11.2 lib/shutl/resource/errors.rb
shutl_resource-0.11.1 lib/shutl/resource/errors.rb
shutl_resource-0.11.0 lib/shutl/resource/errors.rb
shutl_resource-0.10.6 lib/shutl/resource/errors.rb
shutl_resource-0.10.5 lib/shutl/resource/errors.rb
shutl_resource-0.10.4 lib/shutl/resource/errors.rb
shutl_resource-0.10.3 lib/shutl/resource/errors.rb
shutl_resource-0.10.1 lib/shutl/resource/errors.rb
shutl_resource-0.10.0 lib/shutl/resource/errors.rb
shutl_resource-0.9.4 lib/shutl/resource/errors.rb
shutl_resource-0.9.3 lib/shutl/resource/errors.rb
shutl_resource-0.9.1 lib/shutl/resource/errors.rb
shutl_resource-0.9.0 lib/shutl/resource/errors.rb
shutl_resource-0.8.3 lib/shutl/resource/errors.rb