Quite.
At the abstraction level of roughly calculus and below most math implicitly assumes it’s operating on the reals unless stated otherwise. An awful lot of computer calculations are implicitly integers unless stated otherwise. The differing default assumption trips a lot of the more amateur folks up. Regardless of whether they’re expert devs & amateur mathematicians or vice versa.
Back on the topic of exceptions, I just finished a wide-ranging wikigrination triggered by another thread. Serendipity led me to this page Go (programming language) - Wikipedia about one of Google’s in-house inventions.
The relevant point here is in that language functions natively return a tuple of (result, errorcode). Yet another way to skin the cat.