Sha256: 2eb85ae64229c7d17f9aa6b4ed6d2e04cfb6a3535f6159432730377cd6dd6bfe

Contents?: true

Size: 552 Bytes

Versions: 12

Compression:

Stored size: 552 Bytes

Contents

module Hubspot
  class RequestError < StandardError
    attr_accessor :response

    def initialize(response, message=nil)
      message += "\n" if message
      me = super("#{message}Response body: #{response.body}",)
      me.response = response
      return me
    end
  end

  class NotFoundError < RequestError; end

  class ConfigurationError < StandardError; end
  class MissingInterpolation < StandardError; end
  class ContactExistsError < RequestError; end
  class InvalidParams < StandardError; end
  class ApiError < StandardError; end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
hubspot-api-ruby-0.19.0 lib/hubspot/exceptions.rb
hubspot-api-ruby-0.18.0 lib/hubspot/exceptions.rb
hubspot-api-ruby-0.17.1 lib/hubspot/exceptions.rb
hubspot-api-ruby-0.17.0 lib/hubspot/exceptions.rb
hubspot-api-ruby-0.16.0 lib/hubspot/exceptions.rb
hubspot-api-ruby-0.15.0 lib/hubspot/exceptions.rb
hubspot-api-ruby-0.14.0 lib/hubspot/exceptions.rb
hubspot-api-ruby-0.13.0 lib/hubspot/exceptions.rb
hubspot-api-ruby-0.12.0 lib/hubspot/exceptions.rb
hubspot-api-ruby-0.11.0 lib/hubspot/exceptions.rb
hubspot-api-ruby-0.10.0 lib/hubspot/exceptions.rb
hubspot-api-ruby-0.9.0 lib/hubspot/exceptions.rb