Why is error handling important?

后端 未结 6 1251
北荒
北荒 2021-02-13 23:17

I was given a task of write the coding guidelines for my team, and it was going great until my manager asked me to write an explanation of Why Error Handling is Importan

6条回答
  •  盖世英雄少女心
    2021-02-14 00:02

    Error handling is important because it makes it easier for the end users of your code to use it correctly. Another important issue is that it makes your code easier to maintain. Error handling makes it easier to embed input specifications into the code, so you don't have to look up the design when you write and later maintain the code.

提交回复
热议问题