From 72ae641557703c600de12c07a04346ba16001251 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 12 Feb 2021 14:59:02 +0100 Subject: [PATCH] Make SystemException implement IExtraInformationException This allows logging the `$description`. Resolves #3944 --- .../lib/system/exception/SystemException.class.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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 */ -- 2.20.1