Exception: MediaWiki::FakeWiki::ApiError
- Inherits:
-
StandardError
- Object
- StandardError
- MediaWiki::FakeWiki::ApiError
- Defined in:
- lib/media_wiki/fake_wiki.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(code, message) ⇒ ApiError
constructor
A new instance of ApiError.
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, ) @code = code @message = end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
610 611 612 |
# File 'lib/media_wiki/fake_wiki.rb', line 610 def code @code end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
610 611 612 |
# File 'lib/media_wiki/fake_wiki.rb', line 610 def @message end |