wiki.techinc.nl/includes/Rest
daniel 13acba25a0 REST: gracefully handle all exceptions.
ResponseFactory::createFromException already had support for arbitrary
exceptions, but Router was so far only using it for HttpExceptions,
leaving other kinds of exceptions uncaught.

In addition to catching all exceptions and generating an appropriate
JSON response for them, this patch introduces the ErrorReporter
interface, with an MWErrorReporter implementation which calls
MWExceptionHandler::rollbackMasterChangesAndLog(). This is how uncaught
errors are handled for requests coming in via api.php, so it seems
appropriate to use the same approach for requests coming in via
rest.php.

Bug: T285984
Change-Id: I0605a7693821ef58fac80ab67f51a742556a37fd
2021-11-02 20:33:13 +01:00
..
BasicAccess build: Updating dependencies 2021-07-22 03:36:05 +00:00
Handler Do not cache private wiki completion results 2021-10-12 13:12:05 +00:00
HeaderParser Using @return never documentation on always-throw-function 2021-09-07 17:29:03 +02:00
Hook Document hook names in hook interfaces. 2020-09-27 12:03:12 +02:00
i18n Localisation updates from https://translatewiki.net. 2021-09-15 08:00:28 +02:00
PathTemplateMatcher Replace "@stable for calling" by "@stable to call" 2020-07-13 08:55:28 +00:00
Reporter REST: gracefully handle all exceptions. 2021-11-02 20:33:13 +01:00
Validator UserDef: use TitleParser instead of Title objects 2021-09-14 03:25:36 +00:00
ConditionalHeaderUtil.php PHP 7.4 fixes 2019-11-22 09:49:56 +00:00
CopyableStreamInterface.php Add missing public visibility on rest related interface methods 2020-05-09 11:17:27 +00:00
coreDevelopmentRoutes.json Eliminate use of Title object in REST infrastructure 2021-05-05 18:54:58 -07:00
coreRoutes.json Do not cache private wiki completion results 2021-10-12 13:12:05 +00:00
CorsUtils.php build: Updating dependencies 2021-07-22 03:36:05 +00:00
EntryPoint.php REST: gracefully handle all exceptions. 2021-11-02 20:33:13 +01:00
Handler.php More master -> primary documentation and internal var renaming 2021-07-15 11:20:20 +01:00
HeaderContainer.php Unsuppress more phan issues (part 3) 2019-08-31 16:38:55 +00:00
HttpException.php Remove unused default values from class properties 2021-05-12 13:44:28 +02:00
JsonEncodingException.php
LocalizedHttpException.php Replace "@stable for calling" by "@stable to call" 2020-07-13 08:55:28 +00:00
RedirectException.php MediaWiki\Rest\HttpException: Support 3xx codes and wrapped Response 2020-09-11 14:52:54 -04:00
RequestBase.php REST: Rename attributes to path params 2019-06-14 17:01:15 +10:00
RequestData.php Fix typo: 'the the' -> 'the' 2020-05-03 20:45:36 +01:00
RequestFromGlobals.php Rest: Use try/catch to handle URIs with embedded colon 2020-09-04 13:50:28 +00:00
RequestInterface.php Add missing public visibility on rest related interface methods 2020-05-09 11:17:27 +00:00
Response.php
ResponseException.php MediaWiki\Rest\HttpException: Support 3xx codes and wrapped Response 2020-09-11 14:52:54 -04:00
ResponseFactory.php REST: gracefully handle all exceptions. 2021-11-02 20:33:13 +01:00
ResponseInterface.php Fix some @stable for ... annotations to use @stable to ... 2021-07-08 02:54:59 +00:00
Router.php REST: gracefully handle all exceptions. 2021-11-02 20:33:13 +01:00
SimpleHandler.php Replace "@stable for subclassing" with "@stable to extend" 2020-07-13 11:00:30 +02:00
Stream.php
StringStream.php Remove unused default values from class properties 2021-05-12 13:44:28 +02:00