how to throw an exception in kotlin code example Example: kotlin throw exception throw Exception("Exception message")