From 6b89b32986219707e2c554bacaf0f767b32c73af Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Thu, 9 Jun 2016 19:20:33 +0200 Subject: [PATCH] Change exception class in BoxHandler::createBoxCondition() --- wcfsetup/install/files/lib/system/box/BoxHandler.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wcfsetup/install/files/lib/system/box/BoxHandler.class.php b/wcfsetup/install/files/lib/system/box/BoxHandler.class.php index 5a5e378dbc..f193922052 100644 --- a/wcfsetup/install/files/lib/system/box/BoxHandler.class.php +++ b/wcfsetup/install/files/lib/system/box/BoxHandler.class.php @@ -57,7 +57,7 @@ class BoxHandler extends SingletonFactory { * @param string $conditionDefinition * @param string $conditionObjectType * @param array $conditionData - * @throws SystemException + * @throws \InvalidArgumentException */ public function createBoxCondition($boxIdentifier, $conditionDefinition, $conditionObjectType, array $conditionData) { // do not rely on caches during package installation @@ -72,12 +72,12 @@ class BoxHandler extends SingletonFactory { $objectTypeID = $statement->fetchSingleColumn(); if (!$objectTypeID) { - throw new SystemException("Unknown box condition '{$conditionObjectType}' of condition definition '{$conditionDefinition}'"); + throw new \InvalidArgumentException("Unknown box condition '{$conditionObjectType}' of condition definition '{$conditionDefinition}'"); } $box = Box::getBoxByIdentifier($boxIdentifier); if ($box === null) { - throw new SystemException("Unknown box with idenifier '{$boxIdentifier}'"); + throw new \InvalidArgumentException("Unknown box with idenifier '{$boxIdentifier}'"); } (new ConditionAction([], 'create', [ -- 2.20.1