Sha256: 5dafd978ba8e45fb6150931ffbac5dac0559eca39cfd255863ff08b084f3a934

Contents?: true

Size: 815 Bytes

Versions: 244

Compression:

Stored size: 815 Bytes

Contents

module RETS
  ##
  # Generic module that provides access to the code and text separately of the exception
  module ReplyErrors
    attr_reader :reply_text, :reply_code

    def initialize(msg, reply_code=nil, reply_text=nil)
      super(msg)
      @reply_code, @reply_text = reply_code, reply_text
    end
  end

  ##
  # RETS server replied to a request with an error of some sort.
  class APIError < StandardError
    include ReplyErrors
  end

  ##
  # Server responded with bad data.
  class ResponseError < StandardError
  end

  ##
  # HTTP errors related to a request.
  class HTTPError < StandardError
    include ReplyErrors
  end

  ##
  # Cannot login
  class Unauthorized < RuntimeError; end

  ##
  # Account does not have access to the requested API.
  class CapabilityNotFound < RuntimeError; end
end

Version data entries

244 entries across 244 versions & 3 rubygems

Version Path
caboose-rets-0.1.214 lib/rets/exceptions.rb
caboose-rets-0.1.213 lib/rets/exceptions.rb
caboose-rets-0.1.212 lib/rets/exceptions.rb
caboose-rets-0.1.211 lib/rets/exceptions.rb
caboose-rets-0.1.210 lib/rets/exceptions.rb
caboose-rets-0.1.209 lib/rets/exceptions.rb
caboose-rets-0.1.208 lib/rets/exceptions.rb
caboose-rets-0.1.207 lib/rets/exceptions.rb
caboose-rets-0.1.206 lib/rets/exceptions.rb
caboose-rets-0.1.205 lib/rets/exceptions.rb
caboose-rets-0.1.204 lib/rets/exceptions.rb
caboose-rets-0.1.203 lib/rets/exceptions.rb
caboose-rets-0.1.202 lib/rets/exceptions.rb
caboose-rets-0.1.201 lib/rets/exceptions.rb
caboose-rets-0.1.200 lib/rets/exceptions.rb
caboose-rets-0.1.199 lib/rets/exceptions.rb
caboose-rets-0.1.198 lib/rets/exceptions.rb
caboose-rets-0.1.197 lib/rets/exceptions.rb
caboose-rets-0.1.196 lib/rets/exceptions.rb
caboose-rets-0.1.195 lib/rets/exceptions.rb