Open mrowles opened 6 months ago
This is needed for above usecase
I'm currently doing
if (error.constructor.name === 'FacebookRequestError') {
...
}
But it would be great to import the class.
Hello here, I'm facing the same issue and doing the same workaround .. did you were able to import any sdk exceptions? Since there is a lot code errors to handle, this is a must for any conversions API development. I'm concerned that it's still open :/
Which SDK version are you using?
18.0.0
What's the issue?
Cannot import
FacebookRequestError
fromfacebook-nodejs-business-sdk/src/exceptions.d.ts
(can import anything else which is exported from index.d.ts of course).I would like to import this as to do:
I assume there is some convoluted way to import this safely without complaints, but would prefer this is just accessible so I can reference the class easily. If there is a smarter way to do this, all ears!
My workaround is:
Steps/Sample code to reproduce the issue
Observed Results:
Expected Results:
This was easily importable since it's exported from index.