Skip to main content
Post Made Community Wiki by CommunityBot
Source Link
Mitchel Sellers
  • 63.3k
  • 15
  • 115
  • 174

Exceptions are a somewhat costly effect, if for example you have a user that provides an invalid password, it is typically a better idea to pass back a failure flag, or some other indicator that it is invalid.

This is due to the way that exceptions are handled, true bad input, and unique critical stop items should be exceptions, but not failed login info.