| A guy I once worked with had a really good approach to exceptions: don't. Basically if your code should throw, instead of throwing. Do something about it. Rollback the filesystem or transaction so things can retry or the process can exit. Ideally, do not rely on someone reading a log message. Instead, do what that person reading the log would need to do. If that's an escalation to support staff or the CEO. Send the email. If the developer reading the log would just press a retry button, press the button for them. Basically, giving up was just not an option, it worked pretty well tbh, sure we had logs and they were crucial for debugging failures but weekend callouts were not a thing. We never had to babysit processes. Never had to worry about filesystem corruption if you want to kill -9 a process mid run. |