Sha256: db8bf07736bcd946b43ca2af977784dd3b732c58462c46da34d178f327877ab2

Contents?: true

Size: 1004 Bytes

Versions: 13

Compression:

Stored size: 1004 Bytes

Contents

class Shutl::Resource::Error < ::IOError
  attr_reader :body, :status

  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
# 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

13 entries across 13 versions & 1 rubygems

Version Path
shutl_resource-1.5.2 lib/shutl/resource/errors.rb
shutl_resource-1.5.1 lib/shutl/resource/errors.rb
shutl_resource-1.5.0 lib/shutl/resource/errors.rb
shutl_resource-1.4.2 lib/shutl/resource/errors.rb
shutl_resource-1.4.1 lib/shutl/resource/errors.rb
shutl_resource-1.4.0 lib/shutl/resource/errors.rb
shutl_resource-1.3.6 lib/shutl/resource/errors.rb
shutl_resource-1.3.5 lib/shutl/resource/errors.rb
shutl_resource-1.3.4 lib/shutl/resource/errors.rb
shutl_resource-1.3.3 lib/shutl/resource/errors.rb
shutl_resource-1.3.2 lib/shutl/resource/errors.rb
shutl_resource-1.3.1 lib/shutl/resource/errors.rb
shutl_resource-1.3.0 lib/shutl/resource/errors.rb