cleanup before merging to dev
This commit is contained in:
parent
8428a44260
commit
950c745ab7
4 changed files with 1 additions and 29 deletions
|
@ -1,9 +0,0 @@
|
|||
package info.nightscout.androidaps.plugins.pump.omnipod.dash.driver.comm.exceptions
|
||||
|
||||
import info.nightscout.androidaps.plugins.pump.omnipod.dash.driver.pod.response.Response
|
||||
import kotlin.reflect.KClass
|
||||
|
||||
class IllegalResponseException(
|
||||
expectedResponseType: KClass<out Response>,
|
||||
actualResponse: Response
|
||||
) : Exception("Illegal response: expected ${expectedResponseType.simpleName} but got $actualResponse")
|
|
@ -1,6 +0,0 @@
|
|||
package info.nightscout.androidaps.plugins.pump.omnipod.dash.driver.comm.exceptions
|
||||
|
||||
import info.nightscout.androidaps.plugins.pump.omnipod.dash.driver.pod.response.NakResponse
|
||||
|
||||
class NakResponseException(val response: NakResponse) :
|
||||
Exception("Received NAK response: ${response.nakErrorType.value} ${response.nakErrorType.name}")
|
|
@ -1,13 +0,0 @@
|
|||
package info.nightscout.androidaps.plugins.pump.omnipod.dash.driver.comm.exceptions
|
||||
|
||||
import info.nightscout.androidaps.plugins.pump.omnipod.dash.driver.pod.response.AlarmStatusResponse
|
||||
import java.util.*
|
||||
|
||||
class PodAlarmException(val response: AlarmStatusResponse) : Exception(
|
||||
String.format(
|
||||
Locale.getDefault(),
|
||||
"Pod is in alarm: %03d %s",
|
||||
response.alarmType.value.toInt() and 0xff,
|
||||
response.alarmType.name
|
||||
)
|
||||
)
|
Loading…
Reference in a new issue