From: Tim Düsterhus Date: Sun, 31 Jul 2016 12:59:33 +0000 (+0200) Subject: Use InvalidArgumentException in BackgroundQueueHandler X-Git-Tag: 3.0.0_Beta_1~840 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c551a107e1a4fec0684cf386fbb6bc3f04571146;p=GitHub%2FWoltLab%2FWCF.git Use InvalidArgumentException in BackgroundQueueHandler --- diff --git a/wcfsetup/install/files/lib/system/background/BackgroundQueueHandler.class.php b/wcfsetup/install/files/lib/system/background/BackgroundQueueHandler.class.php index efd1e5a1b0..871a5223fc 100644 --- a/wcfsetup/install/files/lib/system/background/BackgroundQueueHandler.class.php +++ b/wcfsetup/install/files/lib/system/background/BackgroundQueueHandler.class.php @@ -47,11 +47,11 @@ class BackgroundQueueHandler extends SingletonFactory { * * @param mixed $jobs Either an instance of \wcf\system\background\job\AbstractBackgroundJob or an array of these * @param int $time Earliest time to consider the job for execution. - * @throws SystemException + * @throws \InvalidArgumentException */ public function enqueueAt($jobs, $time) { if ($time < TIME_NOW) { - throw new SystemException("You may not schedule a job in the past (".$time." is smaller than the current timestamp ".TIME_NOW.")."); + throw new \InvalidArgumentException("You may not schedule a job in the past (".$time." is smaller than the current timestamp ".TIME_NOW.")."); } if (!is_array($jobs)) $jobs = [$jobs]; foreach ($jobs as $job) {