Closed kkesley closed 6 years ago
@kkesley Hi!
Yes, you can use the generic .catch
method since wretch returns a standard Promise
:
wretch().url(...).post(....)
.unauthorized(_ => { ... })
.internalError(_ => { ... })
// ...
.res(_ => { ... })
// ...
.catch(otherError => { ... })
Thank you! What a great library!
Hello, Can wretch handle all other errors beside the one that I specify?
e.g.