Is there any valid reason to ever ignore a caught exception

后端 未结 24 1891
南笙
南笙 2020-11-27 15:43

Wow, I just got back a huge project in C# from outsourced developers and while going through my code review my analysis tool revealed bunches of what it considered bad stuff

24条回答
  •  借酒劲吻你
    2020-11-27 16:29

    I don't catch exceptions unless I plan to do something about them. Ignoring them isn't doing something about them.

提交回复
热议问题