If the model is validating the data, shouldn't it throw exceptions on bad input?
Channel: Roel Van de Paar
Date: 2022-02-17

Software Engineering: If the model is validating the data, shouldn't it throw exceptions on bad input?

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 user239558 (softwareengineering.stackexchange.com/users/134339), user Tulains Cordova (softwareengineering.stackexchange.com/users/61852), user Stephen C (softwareengineering.stackexchange.com/users/172), user MetaFight (softwareengineering.stackexchange.com/users/81495), user Carlos Campderros (softwareengineering.stackexchange.com/users/19962), user Andy (softwareengineering.stackexchange.com/users/66698), and the Stack Exchange Network (softwareengineering.stackexchange.com/questions/201299). 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