I originally posted this question here: Angular Amplify Error Handler - 
GraphQL API Calls 
<https://github.com/aws-amplify/amplify-js/discussions/7474>. The basics 
are:

   1. I have a global error handler that is working for calls to an API 
   service
   2. When I do a try/catch, I get an error object that *data* and *errors *as 
   members (the catch is getting an object of this type: GraphQLResult 
   <https://aws-amplify.github.io/amplify-js/api/interfaces/graphqlresult.html>
   )
   3. The error object I receive in my error handler is not a GraphQLResult 
   
<https://aws-amplify.github.io/amplify-js/api/interfaces/graphqlresult.html>. 
   Instead it is an error object that has an error message, GraphQLResult 
   converted to a string and stack trace

I'm trying to figure out if there's a better way to do this, any help?

Thank you!

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/1c604516-fc54-42ca-b211-37a53a47d092n%40googlegroups.com.

Reply via email to