SpotiFlyer/maintenance-tasks/src/main/java/utils/Exceptions.kt

18 lines
504 B
Kotlin
Raw Normal View History

2021-05-18 16:57:33 +02:00
@file:Suppress("ClassName")
package utils
data class ENV_KEY_MISSING(
val keyName: String,
override val message: String? = "$keyName was not found, please check your ENV variables"
) : Exception(message)
2021-05-20 12:23:08 +02:00
2021-05-18 16:57:33 +02:00
data class HCTI_URL_RESPONSE_ERROR(
val response: String,
override val message: String? = "Server Error, We Recieved this Resp: $response"
) : Exception(message)
2021-05-20 12:23:08 +02:00
data class RETRY_LIMIT_EXHAUSTED(
override val message: String? = "RETRY LIMIT EXHAUSTED!"
) : Exception(message)