bloodshura
07/06/2017, 12:30 AMwhen (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?!")
}