Why is it bad to use exceptions for handling this type of validation? It seems like it makes the...
Channel: Roel Van de Paar
Date: 2022-02-21

Why is it bad to use exceptions for handling this type of validation? It seems like it makes the code so much cleaner?

Helpful?  Please support me on Patreon: https://www.patreon.com/roelvandepaar

With thanks & praise to God, and with thanks to the many people who have made this project possible! | Content (except music & images) licensed under CC BY-SA https://meta.stackexchange.com/help/licensing | Music: https://www.bensound.com/licensing | Images: https://stocksnap.io/license & others | With thanks to user Telastyn (softwareengineering.stackexchange.com/users/51654), user Martin Ba (softwareengineering.stackexchange.com/users/6559), user Flater (softwareengineering.stackexchange.com/users/106566), user Fabio (softwareengineering.stackexchange.com/users/102569), user Ewan (softwareengineering.stackexchange.com/users/177980), user Ben Cottrell (softwareengineering.stackexchange.com/users/51489), user Bassinator (softwareengineering.stackexchange.com/users/145002), and the Stack Exchange Network (softwareengineering.stackexchange.com/questions/385808). Trademarks are property of their respective owners. Disclaimer: All information is provided "AS IS" without warranty of any kind. You are responsible for your own actions. Please contact me if anything is amiss at Roel D.OT VandePaar A.T gmail.com