Open jsakamoto opened 7 years ago
If you post the question to StackOverflow, you will get more in-depth answers. But in fact, you don't need to, since you just need to Google "Catch general exception" you will find many, some of which are from StackOverflow. Also various engineering book like "Code Complete" and "Clean Code" also talk about this.
Hi everyone, and contributors of this library:
Few days ago, @zijianhuang said "
TryParse
static method should not catch all types of exception." with pull request #23 that contains commit:e3a7917.His comment is:
(Source: Some slight QA fixes in 2 commits #23)
I partially agree his opinion. I always feel it is "foolish" that catching all types without much thought.
But, another point of view, we had an experience that ran into really unexpected type of exception caused by the mistake of my implementation. ( See also #7 and #5 ).
What should I do?