-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
feat: add XYError
#4540
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
feat: add XYError
#4540
Conversation
🦋 Changeset detectedLatest commit: 3ac7650 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
caf58f9
to
275deea
Compare
69b715e
to
f81a242
Compare
Thanks for your help @bcakmakoglu . When I see it right this wouldn't be a breaking change anymore, since you just added another param to the onError function. Is that correct? |
@moklick yep, that is correct :) Seems like a conflict came up though, I'll update the PR asap |
d2cba01
to
78e0a63
Compare
Could probably be improved by passing |
78e0a63
to
6061ddd
Compare
b6eb282
to
fd402bf
Compare
fd402bf
to
3ac7650
Compare
🚀 What's changed?
XYError
class to handle errorsXYErrorCode
enum to handle assignable error codesisXYError
utility function to check if an error is an instance ofXYError
XYError
as third argument for theonError
callbackXYError
when handling errors and pass it to theonError
callback🌻 Resolves
XYFlowError
that provides error arguments and allows for easier discerning of errors #4539