From 56f0802c866deeb1c222c834e1b4bab1580cd16f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Duli=C3=A7i?= Date: Thu, 15 Sep 2022 11:34:24 +0300 Subject: [PATCH] updated exception --- app/Exceptions/Common/TooManyEmailsSent.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/app/Exceptions/Common/TooManyEmailsSent.php b/app/Exceptions/Common/TooManyEmailsSent.php index 2831835f5..82a9e597e 100644 --- a/app/Exceptions/Common/TooManyEmailsSent.php +++ b/app/Exceptions/Common/TooManyEmailsSent.php @@ -2,9 +2,13 @@ namespace App\Exceptions\Common; -use Illuminate\Http\Exceptions\ThrottleRequestsException; +use RuntimeException; +use Throwable; -class TooManyEmailsSent extends ThrottleRequestsException +class TooManyEmailsSent extends RuntimeException { - // + public function __construct(string $message = '', int $code = 429, Throwable|null $previous = null) + { + parent::__construct($message, $code, $previous); + } }