Error Handling and Exceptions
摘要
In programming, when a program behaves abnormally for any of the input from a user or experiences any event that causes a disturbance in the flow of the program, it is known as an error in the code. Errors occur in the program at the runtime. To handle errors that can disturb the flow of the program, an exception-handling mechanism is available in Kotlin.