Best Practice Return Value vs Exception vs Enum [closed]
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago . I am trying to find out the advantages and disadvantages for a method with multiple result values. For example I'm using a login-method. If the login was successful, it will pass, otherwise I need to know why it failed. 1. Return true or false (Not enough information) bool