throw Exception("Hi There!") To catch an exception, use the try ... catch expression: try { // some code } catch (e: SomeException) ...
確定! 回上一頁