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

node_io: Convert Node-style errors into Dart-style errors #83

Open
nex3 opened this issue Oct 28, 2020 · 0 comments
Open

node_io: Convert Node-style errors into Dart-style errors #83

nex3 opened this issue Oct 28, 2020 · 0 comments

Comments

@nex3
Copy link
Collaborator

nex3 commented Oct 28, 2020

One of the major API differences currently between node_io and dart:io is the errors: where dart:io throws various subclasses of IOException, node_io just throws Node.js's raw exceptions. This makes it difficult to use node_io to write error-safe code that works with both Dart and Node. It would be great if these exceptions were caught and wrapped in Dart-style exception classes to increase compatibility.

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