Sha256: 1465219561bd491211fe8a9186729d93dc5086497d0b6ae5aa0a9f9be3836294
Contents?: true
Size: 1.05 KB
Versions: 4
Compression:
Stored size: 1.05 KB
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. unless Shutl.const_defined?('NoQuotesGenerated') 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 end
Version data entries
4 entries across 4 versions & 1 rubygems