Exception: WikipediaWrapper::FormatError
- Inherits:
-
WikipediaError
- Object
- StandardError
- WikipediaError
- WikipediaWrapper::FormatError
- Defined in:
- lib/wikipedia_wrapper/exception.rb
Overview
Exception raised when the expected return format does not match what was received
Instance Method Summary collapse
-
#initialize(function, msg) ⇒ FormatError
constructor
A new instance of FormatError.
- #message ⇒ Object
Constructor Details
#initialize(function, msg) ⇒ FormatError
Returns a new instance of FormatError.
33 34 35 36 |
# File 'lib/wikipedia_wrapper/exception.rb', line 33 def initialize(function, msg) @func = function @msg = msg end |
Instance Method Details
#message ⇒ Object
38 39 40 |
# File 'lib/wikipedia_wrapper/exception.rb', line 38 def "Format Error calling \"#{@func}\": #{@msg}" end |