JuulLabs/kable

Consider leveraging `JetBrains/kotlin-wrappers` library

twyatt opened this issue · 1 comments

JetBrains/kotlin-wrappers can provide types such as DOMException, for example:

/* Throws `DOMException` if connection is closed:
*
* DOMException: Failed to execute 'stopNotifications' on 'BluetoothRemoteGATTCharacteristic':
* Characteristic with UUID [...] is no longer valid. Remember to retrieve the characteristic
* again after reconnecting.
*
* Wrapped in `runCatching` to silently ignore failure, as notification will already be
* invalidated due to the connection being closed.
*/