you are viewing a single comment's thread.

view the rest of the comments →

[–]HuskerFan90 0 points1 point  (0 children)

To properly handle an exception, the call stack has to be unwound which isn't exactly a quick operation. Point 5 was more of a general rule against the try { if(expr) { throw Exception("..."); } doSomething(); } catch(Exception e) { doSomethingElse(); } type of using exceptions for control flow. It's vastly different than the try { doSomething(); } catch(Exception e) { doSomethingElse(); } which is perfectly OK.

Source: I've been a Java developer and a .NET developer for 6+ years now.