From: Matthias Schmidt Date: Thu, 9 Jun 2016 17:20:33 +0000 (+0200) Subject: Change exception class in BoxHandler::createBoxCondition() X-Git-Tag: 3.0.0_Beta_1~1467 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6b89b32986219707e2c554bacaf0f767b32c73af;p=GitHub%2FWoltLab%2FWCF.git Change exception class in BoxHandler::createBoxCondition() --- 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', [