Exception: Biblionet::Extractors::NoIdeaWhatThisIsError
- Inherits:
-
StandardError
- Object
- StandardError
- Biblionet::Extractors::NoIdeaWhatThisIsError
- Defined in:
- lib/bookshark/extractors/base.rb
Overview
Raised when something unexpected or in wrong format is parsed.
Instance Attribute Summary collapse
-
#biblionet_id ⇒ Object
readonly
Returns the value of attribute biblionet_id.
-
#the_unexpected ⇒ Object
readonly
Returns the value of attribute the_unexpected.
Instance Method Summary collapse
-
#initialize(biblionet_id, the_unexpected) ⇒ NoIdeaWhatThisIsError
constructor
A new instance of NoIdeaWhatThisIsError.
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_id ⇒ Object (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_unexpected ⇒ Object (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 |