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.



18
19
20
21
# File 'lib/wikibot.rb', line 18

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

Instance Attribute Details

#codeObject

Returns the value of attribute code.



17
18
19
# File 'lib/wikibot.rb', line 17

def code
  @code
end

#infoObject

Returns the value of attribute info.



17
18
19
# File 'lib/wikibot.rb', line 17

def info
  @info
end