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
i18n Localisation updates from https://translatewiki.net. 2021-09-15 08:00:28 +02:00
PathTemplateMatcher
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
CopyableStreamInterface.php
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
HttpException.php Remove unused default values from class properties 2021-05-12 13:44:28 +02:00
JsonEncodingException.php
LocalizedHttpException.php
RedirectException.php
RequestBase.php
RequestData.php
RequestFromGlobals.php
RequestInterface.php
Response.php
ResponseException.php
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
Stream.php
StringStream.php Remove unused default values from class properties 2021-05-12 13:44:28 +02:00