第 6 条: 优先使用标准错误,而不是自定错误
inline fun <reified T> String.readObject(): T {
// ...
if (incorrectString) {
throw JsonParsingException()
}
// ...
return result
}Last updated
inline fun <reified T> String.readObject(): T {
// ...
if (incorrectString) {
throw JsonParsingException()
}
// ...
return result
}Last updated