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.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Error Handling and Exceptions

  • Arnika Patel,
  • Keshav Kumar,
  • Dr. Bishwajeet Kumar Pandey

摘要

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.