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

OSError not extending Exception in universal_io #31

Open
Mark-Toten opened this issue Apr 19, 2022 · 0 comments
Open

OSError not extending Exception in universal_io #31

Mark-Toten opened this issue Apr 19, 2022 · 0 comments

Comments

@Mark-Toten
Copy link

Hi!

I encountered an issue when using this package as a replacement for dart:io for web. The class OSError does not extend Exception in universal_io, while in dart:io it does extend Exception. Since message is already a property, it seems it's just a matter of replacing line 55 in lib/src/io/exceptions.dart:

class OSError {
with
class OSError implements Exception {

OSError already has a message property, so, this is basically it. But maybe I'm missing something here?

Best regards,

Mark

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