9
9
10
10
use Magento \Customer \Model \AuthenticationInterface ;
11
11
use Magento \Framework \Exception \InvalidEmailOrPasswordException ;
12
- use Magento \Framework \Exception \LocalizedException ;
13
- use Magento \Framework \Exception \NoSuchEntityException ;
14
12
use Magento \Framework \Exception \State \UserLockedException ;
15
13
use Magento \Framework \GraphQl \Exception \GraphQlAuthenticationException ;
16
- use Magento \Framework \GraphQl \Exception \GraphQlInputException ;
17
- use Magento \Framework \GraphQl \Exception \GraphQlNoSuchEntityException ;
18
14
19
15
/**
20
16
* Check customer password
@@ -41,8 +37,6 @@ public function __construct(
41
37
* @param string $password
42
38
* @param int $customerId
43
39
* @throws GraphQlAuthenticationException
44
- * @throws GraphQlInputException
45
- * @throws GraphQlNoSuchEntityException
46
40
*/
47
41
public function execute (string $ password , int $ customerId )
48
42
{
@@ -52,10 +46,6 @@ public function execute(string $password, int $customerId)
52
46
throw new GraphQlAuthenticationException (__ ($ e ->getMessage ()), $ e );
53
47
} catch (UserLockedException $ e ) {
54
48
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 );
59
49
}
60
50
}
61
51
}
0 commit comments