From 2e890387cb2e5d736522be680833dde23b1a1b14 Mon Sep 17 00:00:00 2001 From: Hirenkumar Parmar Date: Mon, 13 Mar 2023 14:18:33 +0000 Subject: [PATCH] Changed Exception to LogicException --- src/Api/Management/Entity/App.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Api/Management/Entity/App.php b/src/Api/Management/Entity/App.php index 926e327e..0b030015 100644 --- a/src/Api/Management/Entity/App.php +++ b/src/Api/Management/Entity/App.php @@ -238,14 +238,14 @@ final public function getApiProducts(): array * * @param array $initialApiProducts * - * @throws \Exception If used to update existing App. + * @throws \LogicException If used to update existing App. */ final public function setInitialApiProducts(array $initialApiProducts): void { if (!$this->appId) { $this->initialApiProducts = $initialApiProducts; } else { - throw new \Exception('This method is only supported for creating a new app.'); + throw new \LogicException('This method is only supported for creating a new app.'); } } }