Should a function throw exceptions based on its expected behavior or its goal state?
Channel: Roel Van de Paar
Date: 2022-11-18

Software Engineering: Should a function throw exceptions based on its expected behavior or its goal state?

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 Vector Zita (softwareengineering.stackexchange.com/users/340885), user Sandra Gilbert (softwareengineering.stackexchange.com/users/357812), user pschill (softwareengineering.stackexchange.com/users/301401), user Mecki (softwareengineering.stackexchange.com/users/97810), user John Wu (softwareengineering.stackexchange.com/users/115084), user JimmyJames (softwareengineering.stackexchange.com/users/209331), user candied_orange (softwareengineering.stackexchange.com/users/131624), user 1201ProgramAlarm (softwareengineering.stackexchange.com/users/198876), and the Stack Exchange Network (softwareengineering.stackexchange.com/questions/405401). 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