From c551a107e1a4fec0684cf386fbb6bc3f04571146 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Sun, 31 Jul 2016 14:59:33 +0200 Subject: [PATCH] Use InvalidArgumentException in BackgroundQueueHandler --- .../lib/system/background/BackgroundQueueHandler.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.20.1