File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
app/code/Magento/CustomerGraphQl/Model/Resolver Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 16
16
use Magento \Framework \Api \DataObjectHelper ;
17
17
use Magento \Framework \Exception \LocalizedException ;
18
18
use Magento \Framework \Exception \NoSuchEntityException ;
19
+ use Magento \Framework \Exception \State \InputMismatchException ;
19
20
use Magento \Framework \GraphQl \Config \Element \Field ;
20
21
use Magento \Framework \GraphQl \Exception \GraphQlInputException ;
21
22
use Magento \Framework \GraphQl \Query \Resolver \ContextInterface ;
@@ -117,6 +118,8 @@ public function resolve(
117
118
$ data = $ this ->customerDataProvider ->getCustomerById ($ customerId );
118
119
} catch (ValidatorException $ e ) {
119
120
throw new GraphQlInputException (__ ($ e ->getMessage ()));
121
+ } catch (InputMismatchException $ e ) {
122
+ throw new GraphQlInputException (__ ($ e ->getMessage ()));
120
123
}
121
124
122
125
return ['customer ' => $ data ];
You can’t perform that action at this time.
0 commit comments