split error and exception

This commit is contained in:
2026-01-17 15:57:05 +01:00
parent dbd9d53050
commit a5b578a47d
29 changed files with 51 additions and 51 deletions

View File

@@ -0,0 +1,11 @@
package com.infendro.cli.error
import kotlin.reflect.KClass
class InvalidValue(
val value: String,
val type: KClass<*>,
) : Error() {
override val message: String
get() = """"$value" cannot be converted to ${type.simpleName ?: "Unknown"}."""
}