Thank you! I had noticed that it was exposed as Any, but that didn’t register with me for some reason. After rethinking my approach here is what I ended up with. This works and allows for additional validations in the future.
Copy code
internal object Validator {
const val NAME_BLANK: String = "Presenter must have a name"
internal fun validateName(name: String): String {
notBlank(name, NAME_BLANK)
return name;
}
}