Sha256: 83c46ffe72fbe8214a56ab7f8a6b69e8adb4b1f3e3d42c7e5d676ccd68e83d64

Contents?: true

Size: 343 Bytes

Versions: 16

Compression:

Stored size: 343 Bytes

Contents

class Embedly::BadResponseException < RuntimeError
  attr_accessor :response, :path

  def initialize(response, path = nil)
    @response ||= response
    @path ||= path
  end

  def message
    "Bad Response : #{@response.inspect} for path: #{@path.inspect}"
  end

  def inspect
    self.message
  end

  def to_s
    self.message
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
embedly-1.9.1 lib/embedly/exceptions.rb
embedly-1.9.0 lib/embedly/exceptions.rb
embedly-1.8.0 lib/embedly/exceptions.rb
embedly-1.7.1 lib/embedly/exceptions.rb
embedly-1.7.0 lib/embedly/exceptions.rb
embedly-1.6.0 lib/embedly/exceptions.rb
embedly-1.5.6 lib/embedly/exceptions.rb
embedly-1.5.5 lib/embedly/exceptions.rb
embedly-1.5.4 lib/embedly/exceptions.rb
embedly-1.5.3 lib/embedly/exceptions.rb
embedly-1.5.2 lib/embedly/exceptions.rb
embedly-1.5.1 lib/embedly/exceptions.rb
embedly-1.5.0 lib/embedly/exceptions.rb
embedly-1.4.1 lib/embedly/exceptions.rb
embedly-1.4.0 lib/embedly/exceptions.rb
anideo-embedly-1.3.0 lib/embedly/exceptions.rb