Skip to content

Commit 268edd9

Browse files
authored
ENGCOM-6054: magento/graphql-ce#985: Remove unnecessary exceptions #995
2 parents e644f1f + 2323361 commit 268edd9

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

app/code/Magento/CustomerGraphQl/Model/Customer/CheckCustomerPassword.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,8 @@
99

1010
use Magento\Customer\Model\AuthenticationInterface;
1111
use Magento\Framework\Exception\InvalidEmailOrPasswordException;
12-
use Magento\Framework\Exception\LocalizedException;
13-
use Magento\Framework\Exception\NoSuchEntityException;
1412
use Magento\Framework\Exception\State\UserLockedException;
1513
use Magento\Framework\GraphQl\Exception\GraphQlAuthenticationException;
16-
use Magento\Framework\GraphQl\Exception\GraphQlInputException;
17-
use Magento\Framework\GraphQl\Exception\GraphQlNoSuchEntityException;
1814

1915
/**
2016
* Check customer password
@@ -41,8 +37,6 @@ public function __construct(
4137
* @param string $password
4238
* @param int $customerId
4339
* @throws GraphQlAuthenticationException
44-
* @throws GraphQlInputException
45-
* @throws GraphQlNoSuchEntityException
4640
*/
4741
public function execute(string $password, int $customerId)
4842
{
@@ -52,10 +46,6 @@ public function execute(string $password, int $customerId)
5246
throw new GraphQlAuthenticationException(__($e->getMessage()), $e);
5347
} catch (UserLockedException $e) {
5448
throw new GraphQlAuthenticationException(__($e->getMessage()), $e);
55-
} catch (NoSuchEntityException $e) {
56-
throw new GraphQlNoSuchEntityException(__($e->getMessage()), $e);
57-
} catch (LocalizedException $e) {
58-
throw new GraphQlInputException(__($e->getMessage()), $e);
5949
}
6050
}
6151
}

0 commit comments

Comments
 (0)