-
Notifications
You must be signed in to change notification settings - Fork 36
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
fix: make errors into idiomatic exceptions #77
base: master
Are you sure you want to change the base?
Conversation
Looks good. Can you share what lintier was used. We welcome having linted code. Maybe we should extend CI/CD so that it fails if linter is not happy. |
I believe |
I understand now why Exception is much is better than Error, but I am reserved against breaking changes. (nobody likes to change code due to backward compatibility). Can you volunteer few test that shows that code is backward compatible? |
Sure. Since the |
Ahh I rechecked this. Sorry I was wrong. This is not backwards compatible. Throwing a I will try to see if I can come up with a solution to this, but in the case this is not possible to make backwards compatible without writing some less than ideal code, would this be a deal breaker? |
Hey. First thanks for your effort. What you have done here is But if we do other way around: We can now throw or return Am I correct? |
Hey @ra1u. I've updated the PR based on your feedback. Let me know if there is anything else I need to do :) |
This PR aims to make the exceptions in this library more idiomatic with Dart conventions.
This also helps solve linting errors with stronger lint configurations such as ones found on the lint package