Sha256: b3dead6fb4121c8f02fe95217ef757294337f85cd6f1214faef9f1b2d879c630

Contents?: true

Size: 509 Bytes

Versions: 13

Compression:

Stored size: 509 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 ConfigurationError < StandardError; end
  class MissingInterpolation < StandardError; end
  class ContactExistsError < RequestError; end
  class InvalidParams < StandardError; end
  class ApiError < StandardError; end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
hubspot-api-ruby-0.8.1 lib/hubspot/exceptions.rb
hubspot-ruby-0.9.0 lib/hubspot/exceptions.rb
hubspot-api-ruby-0.8.0 lib/hubspot/exceptions.rb
hubspot-ruby-0.8.1 lib/hubspot/exceptions.rb
hubspot-ruby-0.8.0 lib/hubspot/exceptions.rb
hubspot-ruby-0.7.0 lib/hubspot/exceptions.rb
hubspot-ruby-0.6.1 lib/hubspot/exceptions.rb
hubspot-ruby-0.6.0 lib/hubspot/exceptions.rb
hubspot-ruby-0.5.0 lib/hubspot/exceptions.rb
hubspot-ruby-0.4.0 lib/hubspot/exceptions.rb
hubspot-ruby-0.3.0 lib/hubspot/exceptions.rb
hubspot-ruby-0.2.1 lib/hubspot/exceptions.rb
hubspot-ruby-0.2.0 lib/hubspot/exceptions.rb