fun test() { val result = try { count() } catch (e: ArithmeticException) { throw IllegalStateException(e) } // 处理结果 }