From: Tim Düsterhus Date: Fri, 12 Feb 2021 13:59:02 +0000 (+0100) Subject: Make SystemException implement IExtraInformationException X-Git-Tag: 5.4.0_Alpha_1~275 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=72ae641557703c600de12c07a04346ba16001251;p=GitHub%2FWoltLab%2FWCF.git Make SystemException implement IExtraInformationException This allows logging the `$description`. Resolves #3944 --- diff --git a/wcfsetup/install/files/lib/system/exception/SystemException.class.php b/wcfsetup/install/files/lib/system/exception/SystemException.class.php index 544d0c5ab7..63c822b1b8 100644 --- a/wcfsetup/install/files/lib/system/exception/SystemException.class.php +++ b/wcfsetup/install/files/lib/system/exception/SystemException.class.php @@ -10,7 +10,7 @@ namespace wcf\system\exception; * @license GNU Lesser General Public License * @package WoltLabSuite\Core\System\Exception */ -class SystemException extends LoggedException +class SystemException extends LoggedException implements IExtraInformationException { /** * error description @@ -54,6 +54,16 @@ class SystemException extends LoggedException return $this->description; } + /** + * @inheritDoc + */ + public function getExtraInformation() + { + return [ + ['Description', $this->description], + ]; + } + /** * @inheritDoc */