You could add a ``` fun build() = if (a is OK &amp...
# announcements
r
You could add a
Copy code
fun build() = if (a is OK && b is OK && c is OK) Thing(a, b, c) else throw Exception("Not Okay")
but that wouldn't be quite the same.