Exception: Nlg::Extractors::NoIdeaWhatThisIsError

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

Overview

Raised when something unexpected or in wrong format is parsed.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(nlg_id, the_unexpected) ⇒ NoIdeaWhatThisIsError

Returns a new instance of NoIdeaWhatThisIsError.



100
101
102
103
104
105
106
# File 'lib/bookshark/extractors/nlg/base.rb', line 100

def initialize(nlg_id, the_unexpected)
  @nlg_id = nlg_id
  @the_unexpected = the_unexpected

  msg = "We have no idea what this: #{the_unexpected} is. At book #{nlg_id}"
  super(msg)
end

Instance Attribute Details

#nlg_idObject (readonly)

Returns the value of attribute nlg_id.



98
99
100
# File 'lib/bookshark/extractors/nlg/base.rb', line 98

def nlg_id
  @nlg_id
end

#the_unexpectedObject (readonly)

Returns the value of attribute the_unexpected.



98
99
100
# File 'lib/bookshark/extractors/nlg/base.rb', line 98

def the_unexpected
  @the_unexpected
end