wiki.techinc.nl/includes/exception
Aaron Schulz 806a2214e2 Always log exceptions in rollbackMasterChangesAndLog()
MWExceptionHandler::rollbackMasterChangesAndLog() only logged exceptions
if there were already master changes. This is extremely problematic when
debugging, especially in situations like DeferredUpdates where they were
silently being swallowed.

This makes it log exceptions in all paths, erring on the side of logging
the same exception twice (theoretically it's possible I suppose) instead
of not at all.

Also make the method able to handle DBError exceptions, which most of
the callers seemed to be assuming. ApiMain was handling this explicitly.

Bug: T168347
Change-Id: I8739051f824a455ba669344184c3b11ac95cb561
2017-06-30 22:32:47 +00:00
..
BadRequestError.php
BadTitleError.php
ErrorPageError.php includes: Replace implicit Bugzilla bug numbers with Phab ones 2017-02-21 18:13:24 +00:00
FatalError.php
HttpError.php
LocalizedException.php Add ILocalizedException interface 2016-12-08 13:53:24 -05:00
MWContentSerializationException.php Remove trailing empty lines in PHP 2017-01-16 22:06:43 +01:00
MWException.php Remove $wgExceptionHooks 2017-05-22 00:57:44 +02:00
MWExceptionHandler.php Always log exceptions in rollbackMasterChangesAndLog() 2017-06-30 22:32:47 +00:00
MWExceptionRenderer.php Remove "@author Aaron Schulz" annotations 2017-06-27 15:24:14 -07:00
MWUnknownContentModelException.php Remove trailing empty lines in PHP 2017-01-16 22:06:43 +01:00
PermissionsError.php User group memberships that expire 2017-01-27 09:24:20 +00:00
ReadOnlyError.php
ThrottledError.php
UserBlockedError.php
UserNotLoggedIn.php Merge "Miscellaneous indentation tweaks" 2017-02-28 18:38:36 +00:00