File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
app/code/Magento/WishlistGraphQl/Model/Resolver Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 9
9
10
10
use Magento \Framework \GraphQl \Config \Element \Field ;
11
11
use Magento \Framework \GraphQl \Exception \GraphQlAuthorizationException ;
12
+ use Magento \Framework \GraphQl \Exception \GraphQlInputException ;
12
13
use Magento \Framework \GraphQl \Exception \GraphQlNoSuchEntityException ;
13
14
use Magento \Framework \GraphQl \Query \ResolverInterface ;
14
15
use Magento \Framework \GraphQl \Schema \Type \ResolveInfo ;
@@ -83,7 +84,7 @@ public function resolve(
83
84
array $ args = null
84
85
) {
85
86
if (!$ this ->wishlistConfig ->isEnabled ()) {
86
- throw new GraphQlAuthorizationException (__ ('The wishlist configuration is currently disabled ' ));
87
+ throw new GraphQlInputException (__ ('The wishlist configuration is currently disabled ' ));
87
88
}
88
89
89
90
$ customerId = $ context ->getUserId ();
@@ -95,7 +96,7 @@ public function resolve(
95
96
$ wishlist = $ this ->getWishlist ((int ) $ args ['wishlistId ' ], $ customerId );
96
97
97
98
if (null === $ wishlist ->getId () || $ customerId !== (int ) $ wishlist ->getCustomerId ()) {
98
- throw new GraphQlNoSuchEntityException (__ ('Could not find the specified wishlist ' ));
99
+ throw new GraphQlInputException (__ ('Could not find the specified wishlist ' ));
99
100
}
100
101
101
102
$ wishlistItems = $ this ->getWishlistItems ($ args ['wishlistItems ' ], $ wishlist );
You can’t perform that action at this time.
0 commit comments