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 99
1010use Magento \Framework \GraphQl \Config \Element \Field ;
1111use Magento \Framework \GraphQl \Exception \GraphQlAuthorizationException ;
12+ use Magento \Framework \GraphQl \Exception \GraphQlInputException ;
1213use Magento \Framework \GraphQl \Exception \GraphQlNoSuchEntityException ;
1314use Magento \Framework \GraphQl \Query \ResolverInterface ;
1415use Magento \Framework \GraphQl \Schema \Type \ResolveInfo ;
@@ -83,7 +84,7 @@ public function resolve(
8384 array $ args = null
8485 ) {
8586 if (!$ this ->wishlistConfig ->isEnabled ()) {
86- throw new GraphQlAuthorizationException (__ ('The wishlist configuration is currently disabled ' ));
87+ throw new GraphQlInputException (__ ('The wishlist configuration is currently disabled ' ));
8788 }
8889
8990 $ customerId = $ context ->getUserId ();
@@ -95,7 +96,7 @@ public function resolve(
9596 $ wishlist = $ this ->getWishlist ((int ) $ args ['wishlistId ' ], $ customerId );
9697
9798 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 ' ));
99100 }
100101
101102 $ wishlistItems = $ this ->getWishlistItems ($ args ['wishlistItems ' ], $ wishlist );
You can’t perform that action at this time.
0 commit comments