Skip to content

Commit

Permalink
Merge pull request #85 from thenovices/standarderror
Browse files Browse the repository at this point in the history
Change the exception superclass to StandardError
  • Loading branch information
jpatokal committed Apr 29, 2015
2 parents 737595d + d683e4d commit 05935e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/media_wiki/exception.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module MediaWiki

# General exception occurred within MediaWiki::Gateway, and parent class for MediaWiki::APIError, MediaWiki::Unauthorized.
class Exception < ::Exception
class Exception < ::StandardError
end

# Wrapper for errors returned by MediaWiki API. Possible codes are defined in http://www.mediawiki.org/wiki/API:Errors_and_warnings.
Expand Down

0 comments on commit 05935e9

Please sign in to comment.