throws ioexception kotlin code example Example: Kotlin throws @Throws(SomeException::class) fun raise() { throw SomeException("Mwehp!") }