Exception: WikiBot::APIError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/wikibot.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, info) ⇒ APIError

Returns a new instance of APIError.



22
23
24
25
# File 'lib/wikibot.rb', line 22

def initialize(code, info)
@code = code
@info = info
end

Instance Attribute Details

#codeObject

Returns the value of attribute code.



21
22
23
# File 'lib/wikibot.rb', line 21

def code
  @code
end

#infoObject

Returns the value of attribute info.



21
22
23
# File 'lib/wikibot.rb', line 21

def info
  @info
end