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

Error Handling

  • Alex Vasilev

摘要

Even if the code is reliable and well thought out, it is not always possible to guarantee that no errors will occur during its execution. And the reasons are often objective. For example, the user might enter an invalid value, or the program might not find the file it needs to run. In such cases, error handling is used, which is discussed in this chapter.