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

Error Handling in Dart #12

Open
nyiyui opened this issue Apr 14, 2020 · 0 comments
Open

Error Handling in Dart #12

nyiyui opened this issue Apr 14, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@nyiyui
Copy link

nyiyui commented Apr 14, 2020

Hello and thank you for making this library.
I currently have an issue where is an error occurs, the error is not passed onto Dart (i.e. can't catch it using try, catchError, etc), but appears on the console:

Performing hot reload...
Syncing files to device blah-blah...
Reloaded 1 of 512 libraries in 809ms.
D/BeaconParser( 7318): Parsing beacon layout: blah-blah-blah
D/BluetoothAdapter( 7318): isLeEnabled(): ON
D/BluetoothAdapter( 7318): isLeEnabled(): ON
E/BeaconTransmitter( 7318): Advertisement start failed, code: 2

Just passing the error code as a return variable (instead of Future<void>, then await/then) would be fine for my use case, but it if you have the time to do it, please change the code so programs can catch the error.

Here is a Stack Overflow question about the same issue.

Thank you in advance.

@pszklarska pszklarska added the bug Something isn't working label Nov 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants