Should a business rule violation throw an exception?
问题 Should a business rule violation throw an exception? 回答1: No. It's part of normal conditional-handling logic in the program (and often just a disguised form of user error). 回答2: It depends on what the business rule is, IMO. I would venture to say "not usually" but I'd view it on a case-by-case basis. I don't think there is any one answer, as different business rules might warrant it while others might not. 回答3: First, a couple of quotes from chapter 18 of Applied Microsoft .NET Framework