What is the difference between an error and an exception in .NET?

前端 未结 8 1914
说谎
说谎 2021-02-02 12:28

Could you please explain to me what the difference is between an error and an exception?

8条回答
  •  时光说笑
    2021-02-02 12:58

    Exceptions are a way of reporting and handling execution failures. In other words, they are for communicating error conditions (paraphrasing Krzysztof Cwalina in the book Framework Design Guidelines).

提交回复
热议问题