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

13 lines
384 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)
data class HCTI_URL_RESPONSE_ERROR(
val response: String,
override val message: String? = "Server Error, We Recieved this Resp: $response"
) : Exception(message)