Should a business rule violation throw an exception?

后端 未结 14 653
误落风尘
误落风尘 2021-02-04 04:18

Should a business rule violation throw an exception?

14条回答
  •  孤街浪徒
    2021-02-04 05:06

    No. It's part of normal conditional-handling logic in the program (and often just a disguised form of user error).

提交回复
热议问题