|
|
|
|
|
by lmm
4572 days ago
|
|
Right, but doesn't the error handling approach you describe mean allowing a whole process to fail whenever an error condition occurs, which would cause any requests that were being handled by other threads of that process to fail even though they were perfectly valid? |
|
Look at something like ZeroMQ that is being rewritten specifically to avoid the non-determinism inherent in throwing an exception.
Once you're using threads it's pretty much anyone's guess as to what state the system is in at any point, add exceptions and it just gets worse.