API: Allow for format modules that cannot handle errors
authorBrad Jorsch <bjorsch@wikimedia.org>
Thu, 27 Mar 2014 15:11:17 +0000 (11:11 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Thu, 27 Mar 2014 15:11:17 +0000 (11:11 -0400)
commitd0830af6ba44c6bb51496c6577df4615f6c1bb46
tree1617303cff8af3ba9cfa8d03d57446ac1e6e583c
parent0966c801a4d4fa5c8f486d3b57e89a00afb757cf
API: Allow for format modules that cannot handle errors

ApiFormatFeedWrapper, for example, has nothing particularly useful to do
when given an API error to print. So allow for punting errors to the
default formatter instead.

Bug: 63150
Change-Id: Ifc034d4c7861905e382c42dc22585f0cd2beaf3f
includes/api/ApiFormatBase.php
includes/api/ApiMain.php
includes/api/ApiResult.php