(bug 42949) API shouldn't assume all exceptions are MWException
authorBrad Jorsch <bjorsch@wikimedia.org>
Tue, 11 Dec 2012 14:12:08 +0000 (09:12 -0500)
committerAlexandre Emsenhuber <ialex.wiki@gmail.com>
Fri, 28 Dec 2012 11:50:08 +0000 (12:50 +0100)
commita97f3550a09c5ee64ebade752c5dfa56a7350d84
tree1a2b430ac645a37ce3ab254ffbac4a293d8c85c2
parent1ea3840983d60dfb77b2fa9e1537cf619ac1e7c4
(bug 42949) API shouldn't assume all exceptions are MWException

Since I20525253, the exception-handling code in ApiMain has
inadvertently assumed that all thrown exceptions will be subclasses of
MWException. This change restores the check for MWException while
preserving the new check for not UsageException introduced in that
commit.

Change-Id: I5016143a07c871bae910e93b22fefe61a959780c
RELEASE-NOTES-1.21
includes/api/ApiMain.php