This repository has been archived by the owner on Aug 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Reduce number of exceptions thrown #81
Milestone
Comments
Investigating this further, Roman Elizarov provided a great decision chart:
|
Further guidance: |
Opted to organize the exceptions thrown to make it clearer which exceptions are recoverable (#84). May revisit/consider domain-specific Result returns in a later major version. |
Exceptions have been updated and changes are in |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Instead, we should favor nullable return types or
sealed class
es.http://www.douevencode.com/articles/2018-09/kotlin-error-handling/ summarizes it well.
Exceptions currently (
develop
branch) being thrown:core
RemoteException
ConnectionLostException
OutOfOrderGattCallbackException
GattErrorStatusException
keep-alive
NotReadyException
throw
GattStatusException
RemoteException
ConnectionLostException
The text was updated successfully, but these errors were encountered: