Skip to content
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

Change Error to Exception #60

Open
werainkhatri opened this issue Jan 6, 2021 · 0 comments
Open

Change Error to Exception #60

werainkhatri opened this issue Jan 6, 2021 · 0 comments

Comments

@werainkhatri
Copy link
Member

Describe the bug
Custom Errors classes have been created and caught where Exceptions are to be created and caught.

To Reproduce
Its a semantic bug, cannot be produced.

Expected behavior
An Exception in Dart should be thrown for regular, expected program flow and is intended to be caught, whereas An Error in Dart should be thrown for unexpected program flow and should not be caught but addressed by the programmer. So, Instead of extending Error, we should implement Exception.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant