You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.
There can be lot of reason for exception. (One example #199)
But I don't any way to handle error. A typical callback looks like cb(err, data). But in here the callback is cb(data) and if the function throws any error, I can't put any try..catch block as it's a callback operation. (async)
The text was updated successfully, but these errors were encountered:
If the function you're calling returns a promise, you can attach an error-handling callback using the promise's .catch() method. If the function you're calling doesn't return a promise, I'll update it.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
There can be lot of reason for exception. (One example #199)
But I don't any way to handle error. A typical callback looks like
cb(err, data)
. But in here the callback iscb(data)
and if the function throws any error, I can't put anytry..catch
block as it's a callback operation. (async)The text was updated successfully, but these errors were encountered: