Exception: MediaWiki::FakeWiki::ApiError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, message) ⇒ ApiError

Returns a new instance of ApiError.



612
613
614
615
# File 'lib/media_wiki/fake_wiki.rb', line 612

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

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code.



610
611
612
# File 'lib/media_wiki/fake_wiki.rb', line 610

def code
  @code
end

#messageObject (readonly)

Returns the value of attribute message.



610
611
612
# File 'lib/media_wiki/fake_wiki.rb', line 610

def message
  @message
end