convert to primary constructor

This commit is contained in:
Andrei Vereha 2021-08-05 21:29:21 +02:00
parent 6cb742d4e9
commit 471f077320
2 changed files with 3 additions and 6 deletions

View file

@ -1,5 +1,3 @@
package info.nightscout.androidaps.plugins.pump.omnipod.dash.driver.comm.exceptions
open class FailedToConnectException : Exception {
constructor(message: String? = null) : super("Failed to connect: ${message ?: ""}")
}
open class FailedToConnectException(message: String? = null) : Exception("Failed to connect: ${message ?: ""}")

View file

@ -2,6 +2,5 @@ package info.nightscout.androidaps.plugins.pump.omnipod.dash.driver.comm.scan
import android.os.ParcelUuid
class DiscoveredInvalidPodException : Exception {
constructor(message: String, serviceUUIds: List<ParcelUuid?>) : super("$message service UUIDs: $serviceUUIds")
}
class DiscoveredInvalidPodException(message: String, serviceUUIds: List<ParcelUuid?>) :
Exception("$message service UUIDs: $serviceUUIds")