class WikipediaWrapper::FormatError
Exception raised when the expected return format does not match what was received
Public Class Methods
new(function, msg)
click to toggle source
# File lib/wikipedia_wrapper/exception.rb, line 33 def initialize(function, msg) @func = function @msg = msg end
Public Instance Methods
message()
click to toggle source
# File lib/wikipedia_wrapper/exception.rb, line 38 def message "Format Error calling \"#{@func}\": #{@msg}" end