Exception: Biblionet::Extractors::NoIdeaWhatThisIsError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/bookshark/extractors/base.rb

Overview

Raised when something unexpected or in wrong format is parsed.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(biblionet_id, the_unexpected) ⇒ NoIdeaWhatThisIsError

Returns a new instance of NoIdeaWhatThisIsError.



178
179
180
181
182
183
184
# File 'lib/bookshark/extractors/base.rb', line 178

def initialize(biblionet_id, the_unexpected)
  @biblionet_id = biblionet_id
  @the_unexpected = the_unexpected
  
  msg = "We have no idea what this: #{the_unexpected} is. At book #{biblionet_id}"
  super(msg)
end

Instance Attribute Details

#biblionet_idObject (readonly)

Returns the value of attribute biblionet_id.



176
177
178
# File 'lib/bookshark/extractors/base.rb', line 176

def biblionet_id
  @biblionet_id
end

#the_unexpectedObject (readonly)

Returns the value of attribute the_unexpected.



176
177
178
# File 'lib/bookshark/extractors/base.rb', line 176

def the_unexpected
  @the_unexpected
end