-
Notifications
You must be signed in to change notification settings - Fork 582
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
Provide message for Exception classes #279
Comments
Hello @HolySamosa |
@HolySamosa ping? |
Closing due to inactivity. All exceptions are typed and can be checked in the sources what they mean. Showing contents of the |
@dariuszseweryn Sorry for disappearing on this. We were hit by Hurricane Irma just after this was filed, knocking out power and internet for the better part of a week. I missed the earlier notifications and I'm just now catching up... I ran into this issue w/ code for handling unexpected errors in my application. While for the exception classes that most commonly occur the application provides a user-friendly message that doesn't make use of Thanks for your patience and the great library. :-) |
Sorry to hear that. We will evaluate the idea of adding messages. As a temporary solution you could map the |
Mapping the exceptions is exactly what I am doing. :-) And thanks for the kind words. I was fortunate in that we only were without power-- no damage to our home, just a mess of small tree limbs to clean up. |
If you are mapping the exceptions then why the need for the messages? As far as I remember the library only uses exceptions that are declared in |
Ping? :) |
I'm mapping the "reason" values of I completely agree with your assessment that it is not best practice to use I don't think this is pressing, but it would be welcome update. Thanks! |
I am thinking if this solution would be feasible?
All library errors print with as much details as possible. |
Also better messages will be provided by #303 |
Fixed by #303, closing. |
Some (or all?) of RxAndroidBle's Exception classes currently return
null
forgetMessage()
, making it difficult to provide meaningful error messages in the event of unexpected exceptions.The text was updated successfully, but these errors were encountered: