Hello,
I am looking for guidance / refresher on the preferred way to handle errors / exceptions. Also, I have code that is very low level library and that is deterministic – e.g. new_item – which asserts things, and where the caller is responsible for a grounded call and it shouldn’t really fail …
So, some exceptions should not happen during runtime, and if they do, the operation of the system is undefined. And some exceptions would be domain exceptions such as, say, in the banking domain, withdrawal from an account that has no money left (and that does not allow overdraft).
I think failure of goals i would want to reserve to search only where failure has semantic meaning unrelated to exceptions …
What are the guidelines these days for such handing …
thank you,
Dan