In C#, are there any built-in exceptions I shouldn't use?

前端 未结 6 2873
[愿得一人]
[愿得一人] 2021-02-20 10:08

Are there any Exceptions defined in the .NET Framework that I shouldn\'t throw in my own code, or that it is bad practice to? Should I write my own?

6条回答
  •  面向向阳花
    2021-02-20 10:29

    there are several exception already defined for you. Always try to use these Exceptions before roll your own

提交回复
热议问题