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
How can I handle exceptions or errors thrown by Reddit on snoostorm?
In plain snoowrap I know I can do something like
r.getUser(name).fetch().catch({ statusCode: 404 }, err => {[...]}) with r being the snoowrap object.
How could I achieve something similar in snoostorm?
I would like to catch both HTTP errors and Reddit exceptions such as RATELIMIT, THREAD_LOCKED and so on.
The text was updated successfully, but these errors were encountered:
How can I handle exceptions or errors thrown by Reddit on snoostorm?
In plain snoowrap I know I can do something like
r.getUser(name).fetch().catch({ statusCode: 404 }, err => {[...]})
with r being the snoowrap object.How could I achieve something similar in snoostorm?
I would like to catch both HTTP errors and Reddit exceptions such as RATELIMIT, THREAD_LOCKED and so on.
The text was updated successfully, but these errors were encountered: