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