i have a class with a bunch of properties in it. o...
# getting-started
d
i have a class with a bunch of properties in it. objects of the class can be closed, in which case the property-getters should start throwing an exception. Is there an easy way to do this in Kotlin except writing a custom getter for every property?