Skip to content

Commit

Permalink
Changed Exception to LogicException
Browse files Browse the repository at this point in the history
  • Loading branch information
phdhiren committed Mar 13, 2023
1 parent 35271ae commit 2e89038
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Api/Management/Entity/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.');
}
}
}

0 comments on commit 2e89038

Please sign in to comment.