Currently on Android, when a connection failure happens, the NotConnectedException is thrown. However, this exception does not carry the underlying Gatt Status. See here.
This means clients have to rely on the StateDisconnected instead of examining the NotConnectedException to know the status. Would you consider including the Disconnected.Status as a parameter in NotConnectedException?
I could take a stab at a PR if this makes sense to you.
Currently on Android, when a connection failure happens, the NotConnectedException is thrown. However, this exception does not carry the underlying Gatt Status. See here.
This means clients have to rely on the
StateDisconnectedinstead of examining theNotConnectedExceptionto know the status. Would you consider including theDisconnected.Statusas a parameter inNotConnectedException?I could take a stab at a PR if this makes sense to you.