Exception: WikipediaWrapper::ConfigurationError

Inherits:
WikipediaError
  • Object
show all
Defined in:
lib/wikipedia_wrapper/exception.rb

Overview

Exception raised when there is a problem with the configuration

Instance Method Summary collapse

Constructor Details

#initialize(msg) ⇒ ConfigurationError

Returns a new instance of ConfigurationError.



20
21
22
# File 'lib/wikipedia_wrapper/exception.rb', line 20

def initialize(msg)
  @msg = msg
end

Instance Method Details

#messageObject



24
25
26
# File 'lib/wikipedia_wrapper/exception.rb', line 24

def message
  "#{@msg}"
end