getOrThrow

fun <T> getOrThrow(key: String, adapter: ConfigAdapter<T>): T(source)

Throws an error if the key does not exist or if the value cannot be converted to the desired type.