The "full code" is this: ```fun ensureAvailable() ...
# announcements
b
The "full code" is this:
Copy code
fun ensureAvailable() = when (calculated) {
	is Exception -> throw ToolException(calculated as Exception?)
	is String -> throw ToolException(calculated as String?)
	is File -> {}
	else -> throw ToolException("Calculated object not an instance of File?!")
}